go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/starlark/starlarktest/vendored/assets.gen.go (about) 1 // Copyright 2021 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // AUTOGENERATED. DO NOT EDIT. 16 17 // Package vendored is generated by go.chromium.org/luci/tools/cmd/assets. 18 // 19 // It contains all [*.css *.html *.js *.star *.tmpl] files found in the package as byte arrays. 20 package vendored 21 22 // GetAsset returns an asset by its name. Returns nil if no such asset exists. 23 func GetAsset(name string) []byte { 24 return []byte(files[name]) 25 } 26 27 // GetAssetString is version of GetAsset that returns string instead of byte 28 // slice. Returns empty string if no such asset exists. 29 func GetAssetString(name string) string { 30 return files[name] 31 } 32 33 // GetAssetSHA256 returns the asset checksum. Returns nil if no such asset 34 // exists. 35 func GetAssetSHA256(name string) []byte { 36 data := fileSha256s[name] 37 if data == nil { 38 return nil 39 } 40 return append([]byte(nil), data...) 41 } 42 43 // Assets returns a map of all assets. 44 func Assets() map[string]string { 45 cpy := make(map[string]string, len(files)) 46 for k, v := range files { 47 cpy[k] = v 48 } 49 return cpy 50 } 51 52 var files = map[string]string{ 53 "starlarktest/assert.star": string([]byte{35, 32, 54 80, 114, 101, 100, 101, 99, 108, 97, 114, 101, 100, 32, 98, 117, 55 105, 108, 116, 45, 105, 110, 115, 32, 102, 111, 114, 32, 116, 104, 56 105, 115, 32, 109, 111, 100, 117, 108, 101, 58, 10, 35, 10, 35, 57 32, 101, 114, 114, 111, 114, 40, 109, 115, 103, 41, 58, 32, 114, 58 101, 112, 111, 114, 116, 32, 97, 110, 32, 101, 114, 114, 111, 114, 59 32, 105, 110, 32, 71, 111, 39, 115, 32, 116, 101, 115, 116, 32, 60 102, 114, 97, 109, 101, 119, 111, 114, 107, 32, 119, 105, 116, 104, 61 111, 117, 116, 32, 104, 97, 108, 116, 105, 110, 103, 32, 101, 120, 62 101, 99, 117, 116, 105, 111, 110, 46, 10, 35, 32, 32, 84, 104, 63 105, 115, 32, 105, 115, 32, 100, 105, 115, 116, 105, 110, 99, 116, 64 32, 102, 114, 111, 109, 32, 116, 104, 101, 32, 98, 117, 105, 108, 65 116, 45, 105, 110, 32, 102, 97, 105, 108, 32, 102, 117, 110, 99, 66 116, 105, 111, 110, 44, 32, 119, 104, 105, 99, 104, 32, 104, 97, 67 108, 116, 115, 32, 101, 120, 101, 99, 117, 116, 105, 111, 110, 46, 68 10, 35, 32, 99, 97, 116, 99, 104, 40, 102, 41, 58, 32, 101, 69 118, 97, 108, 117, 97, 116, 101, 32, 102, 40, 41, 32, 97, 110, 70 100, 32, 114, 101, 116, 117, 114, 110, 115, 32, 105, 116, 115, 32, 71 101, 118, 97, 108, 117, 97, 116, 105, 111, 110, 32, 101, 114, 114, 72 111, 114, 32, 109, 101, 115, 115, 97, 103, 101, 44, 32, 105, 102, 73 32, 97, 110, 121, 10, 35, 32, 109, 97, 116, 99, 104, 101, 115, 74 40, 115, 116, 114, 44, 32, 112, 97, 116, 116, 101, 114, 110, 41, 75 58, 32, 114, 101, 112, 111, 114, 116, 32, 119, 104, 101, 116, 104, 76 101, 114, 32, 115, 116, 114, 32, 109, 97, 116, 99, 104, 101, 115, 77 32, 114, 101, 103, 117, 108, 97, 114, 32, 101, 120, 112, 114, 101, 78 115, 115, 105, 111, 110, 32, 112, 97, 116, 116, 101, 114, 110, 46, 79 10, 35, 32, 109, 111, 100, 117, 108, 101, 40, 42, 42, 107, 119, 80 97, 114, 103, 115, 41, 58, 32, 97, 32, 99, 111, 110, 115, 116, 81 114, 117, 99, 116, 111, 114, 32, 102, 111, 114, 32, 97, 32, 109, 82 111, 100, 117, 108, 101, 46, 10, 35, 32, 95, 102, 114, 101, 101, 83 122, 101, 40, 120, 41, 58, 32, 102, 114, 101, 101, 122, 101, 32, 84 116, 104, 101, 32, 118, 97, 108, 117, 101, 32, 120, 32, 97, 110, 85 100, 32, 101, 118, 101, 114, 121, 116, 104, 105, 110, 103, 32, 114, 86 101, 97, 99, 104, 97, 98, 108, 101, 32, 102, 114, 111, 109, 32, 87 105, 116, 46, 10, 35, 10, 35, 32, 67, 108, 105, 101, 110, 116, 88 115, 32, 109, 97, 121, 32, 117, 115, 101, 32, 116, 104, 101, 115, 89 101, 32, 102, 117, 110, 99, 116, 105, 111, 110, 115, 32, 116, 111, 90 32, 100, 101, 102, 105, 110, 101, 32, 116, 104, 101, 105, 114, 32, 91 111, 119, 110, 32, 116, 101, 115, 116, 105, 110, 103, 32, 97, 98, 92 115, 116, 114, 97, 99, 116, 105, 111, 110, 115, 46, 10, 10, 100, 93 101, 102, 32, 95, 101, 113, 40, 120, 44, 32, 121, 41, 58, 10, 94 32, 32, 32, 32, 105, 102, 32, 120, 32, 33, 61, 32, 121, 58, 95 10, 32, 32, 32, 32, 32, 32, 32, 32, 101, 114, 114, 111, 114, 96 40, 34, 37, 114, 32, 33, 61, 32, 37, 114, 34, 32, 37, 32, 97 40, 120, 44, 32, 121, 41, 41, 10, 10, 100, 101, 102, 32, 95, 98 110, 101, 40, 120, 44, 32, 121, 41, 58, 10, 32, 32, 32, 32, 99 105, 102, 32, 120, 32, 61, 61, 32, 121, 58, 10, 32, 32, 32, 100 32, 32, 32, 32, 32, 101, 114, 114, 111, 114, 40, 34, 37, 114, 101 32, 61, 61, 32, 37, 114, 34, 32, 37, 32, 40, 120, 44, 32, 102 121, 41, 41, 10, 10, 100, 101, 102, 32, 95, 116, 114, 117, 101, 103 40, 99, 111, 110, 100, 44, 32, 109, 115, 103, 32, 61, 32, 34, 104 97, 115, 115, 101, 114, 116, 105, 111, 110, 32, 102, 97, 105, 108, 105 101, 100, 34, 41, 58, 10, 32, 32, 32, 32, 105, 102, 32, 110, 106 111, 116, 32, 99, 111, 110, 100, 58, 10, 32, 32, 32, 32, 32, 107 32, 32, 32, 101, 114, 114, 111, 114, 40, 109, 115, 103, 41, 10, 108 10, 100, 101, 102, 32, 95, 108, 116, 40, 120, 44, 32, 121, 41, 109 58, 10, 32, 32, 32, 32, 105, 102, 32, 110, 111, 116, 32, 40, 110 120, 32, 60, 32, 121, 41, 58, 10, 32, 32, 32, 32, 32, 32, 111 32, 32, 101, 114, 114, 111, 114, 40, 34, 37, 115, 32, 105, 115, 112 32, 110, 111, 116, 32, 108, 101, 115, 115, 32, 116, 104, 97, 110, 113 32, 37, 115, 34, 32, 37, 32, 40, 120, 44, 32, 121, 41, 41, 114 10, 10, 100, 101, 102, 32, 95, 99, 111, 110, 116, 97, 105, 110, 115 115, 40, 120, 44, 32, 121, 41, 58, 10, 32, 32, 32, 32, 105, 116 102, 32, 121, 32, 110, 111, 116, 32, 105, 110, 32, 120, 58, 10, 117 32, 32, 32, 32, 32, 32, 32, 32, 101, 114, 114, 111, 114, 40, 118 34, 37, 115, 32, 100, 111, 101, 115, 32, 110, 111, 116, 32, 99, 119 111, 110, 116, 97, 105, 110, 32, 37, 115, 34, 32, 37, 32, 40, 120 120, 44, 32, 121, 41, 41, 10, 10, 100, 101, 102, 32, 95, 102, 121 97, 105, 108, 115, 40, 102, 44, 32, 112, 97, 116, 116, 101, 114, 122 110, 41, 58, 10, 32, 32, 32, 32, 34, 97, 115, 115, 101, 114, 123 116, 95, 102, 97, 105, 108, 115, 32, 97, 115, 115, 101, 114, 116, 124 115, 32, 116, 104, 97, 116, 32, 101, 118, 97, 108, 117, 97, 116, 125 105, 111, 110, 32, 111, 102, 32, 102, 40, 41, 32, 102, 97, 105, 126 108, 115, 32, 119, 105, 116, 104, 32, 116, 104, 101, 32, 115, 112, 127 101, 99, 105, 102, 105, 101, 100, 32, 101, 114, 114, 111, 114, 46, 128 34, 10, 32, 32, 32, 32, 109, 115, 103, 32, 61, 32, 99, 97, 129 116, 99, 104, 40, 102, 41, 10, 32, 32, 32, 32, 105, 102, 32, 130 109, 115, 103, 32, 61, 61, 32, 78, 111, 110, 101, 58, 10, 32, 131 32, 32, 32, 32, 32, 32, 32, 101, 114, 114, 111, 114, 40, 34, 132 101, 118, 97, 108, 117, 97, 116, 105, 111, 110, 32, 115, 117, 99, 133 99, 101, 101, 100, 101, 100, 32, 117, 110, 101, 120, 112, 101, 99, 134 116, 101, 100, 108, 121, 32, 40, 119, 97, 110, 116, 32, 101, 114, 135 114, 111, 114, 32, 109, 97, 116, 99, 104, 105, 110, 103, 32, 37, 136 114, 41, 34, 32, 37, 32, 112, 97, 116, 116, 101, 114, 110, 41, 137 10, 32, 32, 32, 32, 101, 108, 105, 102, 32, 110, 111, 116, 32, 138 109, 97, 116, 99, 104, 101, 115, 40, 112, 97, 116, 116, 101, 114, 139 110, 44, 32, 109, 115, 103, 41, 58, 10, 32, 32, 32, 32, 32, 140 32, 32, 32, 101, 114, 114, 111, 114, 40, 34, 114, 101, 103, 117, 141 108, 97, 114, 32, 101, 120, 112, 114, 101, 115, 115, 105, 111, 110, 142 32, 40, 37, 115, 41, 32, 100, 105, 100, 32, 110, 111, 116, 32, 143 109, 97, 116, 99, 104, 32, 101, 114, 114, 111, 114, 32, 40, 37, 144 115, 41, 34, 32, 37, 32, 40, 112, 97, 116, 116, 101, 114, 110, 145 44, 32, 109, 115, 103, 41, 41, 10, 10, 102, 114, 101, 101, 122, 146 101, 32, 61, 32, 95, 102, 114, 101, 101, 122, 101, 32, 32, 35, 147 32, 97, 110, 32, 101, 120, 112, 111, 114, 116, 101, 100, 32, 103, 148 108, 111, 98, 97, 108, 32, 119, 104, 111, 115, 101, 32, 118, 97, 149 108, 117, 101, 32, 105, 115, 32, 116, 104, 101, 32, 98, 117, 105, 150 108, 116, 45, 105, 110, 32, 102, 114, 101, 101, 122, 101, 32, 102, 151 117, 110, 99, 116, 105, 111, 110, 10, 10, 97, 115, 115, 101, 114, 152 116, 32, 61, 32, 109, 111, 100, 117, 108, 101, 40, 10, 32, 32, 153 32, 32, 34, 97, 115, 115, 101, 114, 116, 34, 44, 10, 32, 32, 154 32, 32, 102, 97, 105, 108, 32, 61, 32, 101, 114, 114, 111, 114, 155 44, 10, 32, 32, 32, 32, 101, 113, 32, 61, 32, 95, 101, 113, 156 44, 10, 32, 32, 32, 32, 110, 101, 32, 61, 32, 95, 110, 101, 157 44, 10, 32, 32, 32, 32, 116, 114, 117, 101, 32, 61, 32, 95, 158 116, 114, 117, 101, 44, 10, 32, 32, 32, 32, 108, 116, 32, 61, 159 32, 95, 108, 116, 44, 10, 32, 32, 32, 32, 99, 111, 110, 116, 160 97, 105, 110, 115, 32, 61, 32, 95, 99, 111, 110, 116, 97, 105, 161 110, 115, 44, 10, 32, 32, 32, 32, 102, 97, 105, 108, 115, 32, 162 61, 32, 95, 102, 97, 105, 108, 115, 44, 10, 41, 10}), 163 } 164 165 var fileSha256s = map[string][]byte{ 166 "starlarktest/assert.star": {217, 40, 167 237, 125, 179, 192, 76, 97, 242, 221, 156, 46, 179, 91, 103, 107, 168 172, 245, 112, 119, 252, 21, 64, 3, 100, 4, 189, 224, 109, 163, 169 240, 240}, 170 }