/prebuilts/go/darwin-x86/test/ |
crlf.go | 37 var golden = "hello\n world" 40 if s != golden { 41 fmt.Printf("s=%q, want %q", s, golden) 43 if t != golden { 44 fmt.Printf("t=%q, want %q", t, golden) 46 if u != golden { 47 fmt.Printf("u=%q, want %q", u, golden)
|
/prebuilts/go/linux-x86/test/ |
crlf.go | 37 var golden = "hello\n world" 40 if s != golden { 41 fmt.Printf("s=%q, want %q", s, golden) 43 if t != golden { 44 fmt.Printf("t=%q, want %q", t, golden) 46 if u != golden { 47 fmt.Printf("u=%q, want %q", u, golden)
|
/external/autotest/tko/parsers/test/templates/ |
base.py | 12 GOLDEN = 'golden' 17 """We want to ensure that result matches the golden. 19 This test is enabled if there is a golden entry 23 GOLDEN not in self.parser_result_store, 24 'No golden data to test against') 26 golden = self.parser_result_store[GOLDEN] 30 self.assertEquals(golden, fresh_copy)
|
/external/libbrillo/brillo/ |
test_helpers.h | 19 inline void ExpectFileEquals(const char* golden, const char* file_path) { 22 EXPECT_EQ(golden, contents);
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
CssTokensTest.java | 85 // input golden 117 golden = tests[i+1]; local 119 assertEquals(input, golden != null ? golden : "", tokens.normalizedCss); 121 assertEquals(input, it.hasNext(), golden != null); 122 if (golden != null) { 124 assertEquals(input, golden, it.next()); 156 // input golden 197 golden = tests[i+1]; local 201 if (golden != null) [all...] |
HtmlLexerTest.java | 53 // Get the golden. 54 String golden = Resources.toString( local 59 assertEquals(golden, actual.toString()); 133 // Do C style escaping of the token text so that each token in the golden 148 private static void assertTokens(String markup, String... golden) { 155 assertEquals(Arrays.asList(golden), actual);
|
EncodingTest.java | 43 String golden = local 45 assertEquals(golden, Encoding.decodeHtml(html)); 48 assertSame(golden, Encoding.decodeHtml(golden));
|
/build/make/tools/ |
check_builds.sh | 55 rm -rf $TEST_BUILD_DIR/golden-* $TEST_BUILD_DIR/dist-* 56 do_builds golden "$@" 64 inputs="$inputs $TEST_BUILD_DIR/golden-$1/installed-files.txt" 83 diff $TEST_BUILD_DIR/golden-$1/installed-files.txt $TEST_BUILD_DIR/dist-$1/installed-files.txt &> /dev/null 86 diff $TEST_BUILD_DIR/golden-$1/installed-files.txt $TEST_BUILD_DIR/dist-$1/installed-files.txt
|
/libcore/luni/src/test/java/libcore/util/ |
SerializationTester.java | 30 private final String golden; field in class:SerializationTester 33 public SerializationTester(T value, String golden) { 34 this.golden = golden; 55 if (golden == null || golden.length() == 0) { 56 fail("No golden value supplied! Consider using this: " 61 T deserialized = (T) deserialize(hexDecode(golden)); 62 assertTrue("User-constructed value doesn't equal deserialized golden value",
|
/prebuilts/go/darwin-x86/src/cmd/compile/internal/gc/ |
logic_test.go | 11 // golden functions we use repeatedly 21 golden func(int64) int64 39 want := test.golden(v) 48 golden func(int64, int64) int64 69 want := test.golden(v, w) 82 // golden functions we use repeatedly 92 golden func(int32) int32 110 want := test.golden(v) 119 golden func(int32, int32) int32 140 want := test.golden(v, w [all...] |
/prebuilts/go/linux-x86/src/cmd/compile/internal/gc/ |
logic_test.go | 11 // golden functions we use repeatedly 21 golden func(int64) int64 39 want := test.golden(v) 48 golden func(int64, int64) int64 69 want := test.golden(v, w) 82 // golden functions we use repeatedly 92 golden func(int32) int32 110 want := test.golden(v) 119 golden func(int32, int32) int32 140 want := test.golden(v, w [all...] |
/prebuilts/go/darwin-x86/src/go/doc/ |
doc_test.go | 23 var update = flag.Bool("update", false, "update golden (.out) files") 108 // golden files always use / in filenames - canonicalize them 121 // update golden file if necessary 122 golden := filepath.Join(dataDir, fmt.Sprintf("%s.%d.golden", pkg.Name, mode)) 124 err := ioutil.WriteFile(golden, got, 0644) 131 // get golden file 132 want, err := ioutil.ReadFile(golden)
|
/prebuilts/go/linux-x86/src/go/doc/ |
doc_test.go | 23 var update = flag.Bool("update", false, "update golden (.out) files") 108 // golden files always use / in filenames - canonicalize them 121 // update golden file if necessary 122 golden := filepath.Join(dataDir, fmt.Sprintf("%s.%d.golden", pkg.Name, mode)) 124 err := ioutil.WriteFile(golden, got, 0644) 131 // get golden file 132 want, err := ioutil.ReadFile(golden)
|
/prebuilts/go/darwin-x86/src/go/printer/ |
printer_test.go | 27 var update = flag.Bool("update", false, "update golden files") 117 func runcheck(t *testing.T, source, golden string, mode checkMode) { 130 // update golden files if necessary 132 if err := ioutil.WriteFile(golden, res, 0644); err != nil { 138 // get golden 139 gld, err := ioutil.ReadFile(golden) 145 // formatted source and golden must be the same 146 if err := diff(source, golden, res, gld); err != nil { 152 // formatting golden must be idempotent 156 if err := diff(golden, fmt.Sprintf("format(%s)", golden), gld, res); err != nil [all...] |
/prebuilts/go/linux-x86/src/go/printer/ |
printer_test.go | 27 var update = flag.Bool("update", false, "update golden files") 117 func runcheck(t *testing.T, source, golden string, mode checkMode) { 130 // update golden files if necessary 132 if err := ioutil.WriteFile(golden, res, 0644); err != nil { 138 // get golden 139 gld, err := ioutil.ReadFile(golden) 145 // formatted source and golden must be the same 146 if err := diff(source, golden, res, gld); err != nil { 152 // formatting golden must be idempotent 156 if err := diff(golden, fmt.Sprintf("format(%s)", golden), gld, res); err != nil [all...] |
/external/libchrome/sandbox/linux/bpf_dsl/ |
bpf_dsl_unittest.cc | 25 #include "sandbox/linux/bpf_dsl/golden/golden_files.h" 65 PolicyEmulator(const golden::Golden& golden, const Policy& policy) 73 expected = golden.i386_dump; 75 expected = golden.x86_64_dump; 82 LOG(WARNING) << "Missing golden file data entry"; 137 PolicyEmulator emulator(golden::kBasicPolicy, BasicPolicy()); 169 PolicyEmulator emulator(golden::kBooleanLogicPolicy, BooleanLogicPolicy()); 213 PolicyEmulator emulator(golden::kMoreBooleanLogicPolicy [all...] |
/prebuilts/go/darwin-x86/src/hash/fnv/ |
fnv_test.go | 14 type golden struct { type 19 var golden32 = []golden{ 26 var golden32a = []golden{ 33 var golden64 = []golden{ 40 var golden64a = []golden{ 63 func testGolden(t *testing.T, hash hash.Hash, gold []golden) {
|
/prebuilts/go/linux-x86/src/hash/fnv/ |
fnv_test.go | 14 type golden struct { type 19 var golden32 = []golden{ 26 var golden32a = []golden{ 33 var golden64 = []golden{ 40 var golden64a = []golden{ 63 func testGolden(t *testing.T, hash hash.Hash, gold []golden) {
|
/test/vts/compilation_tools/vtsc/test/ |
Android.mk | 28 $(LOCAL_BUILT_MODULE): PRIVATE_CANONICAL_DIR := $(LOCAL_PATH)/golden
|
/external/google-breakpad/src/testing/test/ |
gmock_output_test.py | 50 # The flag for generating the golden file 160 golden = golden_file.read() 163 # The normalized output should match the golden file. 164 self.assertEquals(golden, output)
|
/external/googletest/googlemock/test/ |
gmock_output_test.py | 50 # The flag for generating the golden file 160 golden = golden_file.read() 163 # The normalized output should match the golden file. 164 self.assertEquals(golden, output)
|
/external/v8/testing/gmock/test/ |
gmock_output_test.py | 50 # The flag for generating the golden file 160 golden = golden_file.read() 163 # The normalized output should match the golden file. 164 self.assertEquals(golden, output)
|
/prebuilts/go/darwin-x86/src/cmd/gofmt/ |
gofmt_test.go | 18 var update = flag.Bool("update", false, "update .golden files") 124 // corresponding testdata/*.golden files. The gofmt flags used to process 143 out = in[:len(in)-len(".input")] + ".golden" 156 const golden = "testdata/crlf.golden" // must not contain any CR's 166 data, err = ioutil.ReadFile(golden) 171 t.Errorf("%s contains CR's", golden)
|
/prebuilts/go/darwin-x86/src/crypto/rc4/ |
rc4_test.go | 17 var golden = []rc4Test{ var 88 for gi, g := range golden { 131 c1a, _ := NewCipher(golden[0].key) 132 c1b, _ := NewCipher(golden[1].key) 139 c2a, _ := NewCipher(golden[0].key) 140 c2b, _ := NewCipher(golden[1].key) 152 c, err := NewCipher(golden[0].key)
|
/prebuilts/go/linux-x86/src/cmd/gofmt/ |
gofmt_test.go | 18 var update = flag.Bool("update", false, "update .golden files") 124 // corresponding testdata/*.golden files. The gofmt flags used to process 143 out = in[:len(in)-len(".input")] + ".golden" 156 const golden = "testdata/crlf.golden" // must not contain any CR's 166 data, err = ioutil.ReadFile(golden) 171 t.Errorf("%s contains CR's", golden)
|