/third_party/mindspore/tests/ut/python/dataset/ |
D | test_epoch_ctrl.py | 139 golden = np.array([i]) 140 np.testing.assert_array_equal(item["data"], golden) 158 golden = np.array([i]) 159 np.testing.assert_array_equal(item["data"], golden) 176 golden = np.array([i]) 177 np.testing.assert_array_equal(item["data"].asnumpy(), golden) 199 golden = np.array([i]) 200 np.testing.assert_array_equal(item["data"].asnumpy(), golden) 223 golden = np.array([i]) 224 np.testing.assert_array_equal(item["data"].asnumpy(), golden) [all …]
|
D | test_pyfunc.py | 42 golden = np.array([[i * 2, (i + 1) * 2], [(i + 2) * 2, (i + 3) * 2]]) 43 np.testing.assert_array_equal(item["out"], golden) 63 golden = np.array([[i, i + 1], [i + 2, i + 3]]) 64 np.testing.assert_array_equal(item["out0"], golden) 65 golden = np.array([[i * 2, (i + 1) * 2], [(i + 2) * 2, (i + 3) * 2]]) 66 np.testing.assert_array_equal(item["out1"], golden) 87 golden = np.array([[i * 2, (i + 1) * 2], [(i + 2) * 2, (i + 3) * 2]]) 88 np.testing.assert_array_equal(item["out"], golden) 109 golden = np.array([[i, i + 1], [i + 2, i + 3]]) 110 np.testing.assert_array_equal(item["out0"], golden) [all …]
|
D | test_datasets_generator.py | 65 golden = np.array([i]) 66 np.testing.assert_array_equal(item["data"], golden) 87 golden = np.array([[i, i + 1], [i + 2, i + 3]]) 88 np.testing.assert_array_equal(item["data"], golden) 109 golden = np.array([i]) 110 np.testing.assert_array_equal(item["col0"], golden) 111 golden = np.array([[i, i + 1], [i + 2, i + 3]]) 112 np.testing.assert_array_equal(item["col1"], golden) 129 golden = np.array([i]) 130 np.testing.assert_array_equal(item["data"], golden) [all …]
|
D | test_generator_reset_pass.py | 48 golden = np.array([0, 2, 1, 2]) 50 np.testing.assert_array_equal(output, golden) 74 …golden = np.array([0, 1, 2, 1, 2, 1, 2, 1, 2, 10, 11, 12, 10, 11, 12, 23, 24, 22, 23, 24, 22, 23, … 76 np.testing.assert_array_equal(output, golden) 100 golden = np.array([0, 2, 2, 2, 10, 11, 12, 10, 11, 12, 2, 2, 24]) 102 np.testing.assert_array_equal(output, golden) 128 golden = np.array([0]) 131 golden = np.append(golden, expected) 135 np.testing.assert_array_equal(output, golden) 152 golden = np.array([0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]) [all …]
|
D | test_iterator.py | 63 golden = np.array([i], dtype=np.float32) 64 np.testing.assert_array_equal(item["data"].asnumpy(), golden) 83 golden = np.array([i], dtype=np.float32) 84 np.testing.assert_array_equal(item[0].asnumpy(), golden)
|
D | test_save_op.py | 327 golden = np.array([i]) 328 np.testing.assert_array_equal(item["data"], golden) 357 golden = np.array([[i], [i + 1], [i + 2], [i + 3]], dtype=t) 359 np.testing.assert_array_equal(item["data"], golden) 481 golden = np.array(arr) 482 np.testing.assert_array_equal(item["data"], golden) 500 golden = np.arange(5).reshape([1, 5]) 502 golden = np.arange(10).reshape([2, 5]) 503 np.testing.assert_array_equal(item["data"], golden)
|
/third_party/flutter/flutter/packages/flutter_test/test/ |
D | goldens_test.dart | 85 Future<bool> doComparison([ String golden = 'golden.png' ]) { 86 final Uri uri = fs.file(fix(golden)).uri; 94 test('when golden file is in same folder as test', () async { 95 fs.file(fix('/golden.png')).writeAsBytesSync(_kExpectedBytes); 100 test('when golden file is in subfolder of test', () async { 109 test('and golden file is in same folder as test', () async { 110 fs.file(fix('/foo/bar/golden.png')) 115 final bool success = await doComparison('golden.png'); 119 test('and golden file is in subfolder of test', () async { 120 fs.file(fix('/foo/bar/baz/golden.png')) [all …]
|
/third_party/flutter/flutter/packages/flutter_goldens/lib/ |
D | flutter_goldens.dart | 36 /// Abstract base class golden file comparator specific to the `flutter/flutter` 39 /// Creates a [FlutterGoldenFileComparator] that will resolve golden file 53 /// The directory to which golden file URIs will be resolved in [compare] and 66 Future<void> update(Uri golden, Uint8List imageBytes) async { 67 final File goldenFile = getGoldenFile(golden); 82 /// Returns the golden [File] identified by the given [Uri]. 92 /// A [FlutterGoldenFileComparator] for testing golden images against the 97 /// minimum. To satisfy this requirement, this comparator retrieves the golden 110 /// that tests golden images through Skia Gold. 112 /// Creates a [FlutterGoldensRepositoryFileComparator] that will test golden [all …]
|
/third_party/flutter/flutter/packages/flutter_test/lib/src/ |
D | goldens.dart | 13 /// Compares rasterized image bytes against a golden image file. 24 /// Compares [imageBytes] against the golden file identified by [golden]. 27 /// [imageBytes] matches the golden file's bytes within the tolerance defined 33 /// The method by which [golden] is located and by which its bytes are loaded 37 Future<bool> compare(Uint8List imageBytes, Uri golden); 39 /// Updates the golden file identified by [golden] with [imageBytes]. 45 /// The method by which [golden] is located and by which its bytes are written 47 Future<void> update(Uri golden, Uint8List imageBytes); 49 /// Returns a new golden file [Uri] to incorporate any [version] number with 53 /// historical golden files. [all …]
|
/third_party/flatbuffers/tests/ |
D | BUILD.bazel | 33 ":arrays_test.golden", 44 ":monsterdata_test.golden", 49 ":prototest/test.golden", 51 ":prototest/test_include.golden", 52 ":prototest/test_suffix.golden", 53 ":prototest/test_union.golden", 54 ":prototest/test_union_include.golden", 55 ":prototest/test_union_suffix.golden",
|
/third_party/flutter/skia/tests/ |
D | SkGaussFilterTest.cpp | 32 double sigma; std::vector<double> golden; in DEF_TEST() local 33 std::tie(sigma, golden) = test; in DEF_TEST() 40 REPORTER_ASSERT(r, static_cast<size_t>(n) == golden.size()); in DEF_TEST() 43 for (size_t i = 0; i < golden.size(); i++) { in DEF_TEST() 44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
|
/third_party/skia/tests/ |
D | SkGaussFilterTest.cpp | 32 double sigma; std::vector<double> golden; in DEF_TEST() local 33 std::tie(sigma, golden) = test; in DEF_TEST() 40 REPORTER_ASSERT(r, static_cast<size_t>(n) == golden.size()); in DEF_TEST() 43 for (size_t i = 0; i < golden.size(); i++) { in DEF_TEST() 44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
|
/third_party/grpc/test/cpp/codegen/ |
D | golden_file_test.cc | 45 std::ifstream golden(golden_file); in run_test() local 48 ASSERT_TRUE(golden.good()); in run_test() 53 gold_oss << golden.rdbuf(); in run_test() 57 golden.close(); in run_test()
|
/third_party/skia/experimental/lowp-basic/ |
D | lerp-study.cpp | 21 void log(int16_t golden, int16_t candidate) { in log() 22 int diff = candidate - golden; in log() 25 diff_8_bits += candidate != golden; in log() 91 int16_t golden = floor(l + 0.5f); in check_lerp() local 93 stats.log(golden, candidate); in check_lerp()
|
D | bilerp-study.cpp | 21 void log(int16_t golden, int16_t candidate) { in log() 22 int64_t diff = candidate - golden; in log() 25 diff_8_bits += candidate != golden; in log() 106 int16_t golden = floor(l + 0.5); in check_bilerp() local 110 stats.log(golden, candidate); in check_bilerp()
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/tools/emacs/ |
D | gyp-tests.el | 48 (let ((golden (read-golden-sample sample)) 50 (should (equal golden fontified)) 51 (should (equal (text-face-properties golden)
|
/third_party/node/tools/gyp/tools/emacs/ |
D | gyp-tests.el | 48 (let ((golden (read-golden-sample sample)) 50 (should (equal golden fontified)) 51 (should (equal (text-face-properties golden)
|
/third_party/flutter/skia/third_party/externals/angle2/src/common/ |
D | matrix_utils_unittest.cpp | 61 void CheckMatrixCloseToGolden(float *golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument 67 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden() 71 void CheckMatrixCloseToGolden(const std::vector<float> &golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument 75 for (size_t i = 0; i < golden.size(); i++) in CheckMatrixCloseToGolden() 77 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden() 276 Mat4 golden(elementsExpected); in TEST() local 279 CheckMat4ExactlyEq(r, golden); in TEST() 730 Mat4 golden(elementsExpected); in TEST() local 733 CheckMat4ExactlyEq(r, golden); in TEST() 774 Mat4 golden(elementsExpected); in TEST() local [all …]
|
/third_party/skia/third_party/externals/angle2/src/common/ |
D | matrix_utils_unittest.cpp | 61 void CheckMatrixCloseToGolden(float *golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument 67 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden() 71 void CheckMatrixCloseToGolden(const std::vector<float> &golden, const Mat4 &m) in CheckMatrixCloseToGolden() argument 75 for (size_t i = 0; i < golden.size(); i++) in CheckMatrixCloseToGolden() 77 EXPECT_NEAR(golden[i], checkElts[i], floatFaultTolarance); in CheckMatrixCloseToGolden() 276 Mat4 golden(elementsExpected); in TEST() local 279 CheckMat4ExactlyEq(r, golden); in TEST() 730 Mat4 golden(elementsExpected); in TEST() local 733 CheckMat4ExactlyEq(r, golden); in TEST() 774 Mat4 golden(elementsExpected); in TEST() local [all …]
|
/third_party/flutter/engine/flutter/testing/dart/ |
D | canvas_test.dart | 90 Future<bool> fuzzyCompareImages(Image golden, Image img) async { 91 if (golden.width != img.width || golden.height != img.height) { 94 int getPixel(ByteData data, int x, int y) => data.getUint32((x + y * golden.width) * 4); 95 final ByteData goldenData = await golden.toByteData(); 97 for (int y = 0; y < golden.height; y++) { 98 for (int x = 0; x < golden.width; x++) {
|
/third_party/protobuf/src/google/protobuf/io/ |
D | zero_copy_stream_unittest.cc | 569 std::string golden; in TEST_F() local 570 GOOGLE_CHECK_OK(File::GetContents(golden_filename, &golden, true)); in TEST_F() 573 std::string gzip_compressed = Compress(golden, options); in TEST_F() 576 std::string not_compressed = Compress(golden, options); in TEST_F() 581 std::string zlib_compressed = Compress(golden, options); in TEST_F() 585 EXPECT_GT(not_compressed.size(), golden.size()); in TEST_F() 594 EXPECT_TRUE(Uncompress(not_compressed) == golden); in TEST_F() 595 EXPECT_TRUE(Uncompress(gzip_compressed) == golden); in TEST_F() 596 EXPECT_TRUE(Uncompress(zlib_compressed) == golden); in TEST_F() 663 std::string golden = "abcdefghijklmnopqrstuvwxyz"; in TEST_F() local [all …]
|
/third_party/libphonenumber/tools/java/java-build/test/com/google/i18n/phonenumbers/ |
D | BuildShortNumberMetadataJsonFromXmlGoldenTest.java | 38 File golden = new File(srcDir, GOLDEN_FILE_NAME); in testBuildMetadataJsonFromXmlGolden() local 46 new BufferedReader(new InputStreamReader(new FileInputStream(golden), "UTF-8")); in testBuildMetadataJsonFromXmlGolden()
|
D | BuildMetadataJsonFromXmlGoldenTest.java | 38 File golden = new File(srcDir, GOLDEN_FILE_NAME); in testBuildMetadataJsonFromXmlGolden() local 45 new BufferedReader(new InputStreamReader(new FileInputStream(golden), "UTF-8")); in testBuildMetadataJsonFromXmlGolden()
|
/third_party/flutter/flutter/packages/flutter_goldens/test/ |
D | flutter_goldens_test.dart | 125 test('throws if golden file is not found', () async { 134 test('returns false if golden bytes do not match', () async { 142 test('returns true if golden bytes match', () async { 152 test('creates golden file if it does not already exist', () async { 160 test('overwrites golden bytes if golden file already exist', () async {
|
/third_party/boost/boost/math/tools/ |
D | minima.hpp | 39 static const T golden = 0.3819660f; // golden ratio, don't need too much precision here! in brent_find_minima() local 73 delta = golden * delta2; in brent_find_minima() 88 delta = golden * delta2; in brent_find_minima()
|