Home
last modified time | relevance | path

Searched refs:expected_text (Results 1 – 25 of 39) sorted by relevance

12

/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2_test.py702 expected_text = ns + "(loss_reduction=tf.keras.losses.Reduction.SUM)"
704 self.assertEqual(expected_text, new_text)
707 expected_text = ns + "(loss_reduction=TEST)"
711 expected_text = (
716 self.assertEqual(expected_text, new_text)
719 expected_text = ("tf.estimator.BaselineClassifier(" +
723 self.assertEqual(expected_text, new_text)
731 expected_text = "tf.compat.v1.estimator." + c + suffix
733 self.assertEqual(new_text, expected_text)
747 expected_text = "tf.compat.v1.estimator." + c + suffix
[all …]
Dtf_upgrade_v2_safety_test.py47 expected_text = ("import tensorflow.compat.v1 as tf")
49 self.assertEqual(expected_text, new_text)
52 expected_text = ("import tensorflow.compat.v1 as tf, other_import as y")
54 self.assertEqual(expected_text, new_text)
57 expected_text = ("import tensorflow.compat.v1 as tensorflow")
59 self.assertEqual(expected_text, new_text)
62 expected_text = "import tensorflow.compat.v1.foo"
64 self.assertEqual(expected_text, new_text)
67 expected_text = "import tensorflow.compat.v1.foo as bar"
69 self.assertEqual(expected_text, new_text)
[all …]
Dast_edits_test.py506 expected_text = "import bar as f"
508 self.assertEqual(expected_text, new_text)
511 expected_text = "import bar as foo"
513 self.assertEqual(expected_text, new_text)
516 expected_text = "import bar.test"
518 self.assertEqual(expected_text, new_text)
521 expected_text = "import bar.test as t"
523 self.assertEqual(expected_text, new_text)
526 expected_text = "import bar as f, a as b"
528 self.assertEqual(expected_text, new_text)
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/reduce/
Dreduce_test_util.cpp39 void CheckEqual(const spv_target_env env, const std::string& expected_text, in CheckEqual() argument
44 t.Assemble(expected_text, &expected_binary, kReduceAssembleOption)); in CheckEqual()
48 void CheckEqual(const spv_target_env env, const std::string& expected_text, in CheckEqual() argument
52 CheckEqual(env, expected_text, actual_binary); in CheckEqual()
Dreduce_test_util.h33 void CheckEqual(spv_target_env env, const std::string& expected_text,
38 void CheckEqual(spv_target_env env, const std::string& expected_text,
/external/deqp-deps/SPIRV-Tools/test/reduce/
Dreduce_test_util.cpp39 void CheckEqual(const spv_target_env env, const std::string& expected_text, in CheckEqual() argument
44 t.Assemble(expected_text, &expected_binary, kReduceAssembleOption)); in CheckEqual()
48 void CheckEqual(const spv_target_env env, const std::string& expected_text, in CheckEqual() argument
52 CheckEqual(env, expected_text, actual_binary); in CheckEqual()
Dreduce_test_util.h33 void CheckEqual(spv_target_env env, const std::string& expected_text,
38 void CheckEqual(spv_target_env env, const std::string& expected_text,
/external/protobuf/src/google/protobuf/compiler/
Dannotation_test_util.cc138 const std::string& expected_text) { in AtLeastOneAnnotationMatchesSubstring() argument
149 if (file_content.substr(begin, end - begin) == expected_text) { in AtLeastOneAnnotationMatchesSubstring()
158 const std::string& expected_text) { in AnnotationMatchesSubstring() argument
162 expected_text); in AnnotationMatchesSubstring()
Dannotation_test_util.h102 const std::string& expected_text);
108 const std::string& expected_text);
Dmock_code_generator.cc138 const std::string& expected_text, in CheckSingleAnnotation() argument
145 EXPECT_EQ(expected_text.size(), annotation.end() - annotation.begin()); in CheckSingleAnnotation()
146 EXPECT_EQ(expected_text, in CheckSingleAnnotation()
147 file_content.substr(annotation.begin(), expected_text.size())); in CheckSingleAnnotation()
Dcommand_line_interface_unittest.cc140 void ExpectErrorText(const std::string& expected_text);
147 void ExpectCapturedStdout(const std::string& expected_text);
398 const std::string& expected_text) { in ExpectErrorText() argument
400 EXPECT_EQ(StringReplace(expected_text, "$tmpdir", temp_directory_, true), in ExpectErrorText()
484 const std::string& expected_text) { in ExpectCapturedStdout() argument
485 EXPECT_EQ(expected_text, captured_stdout_); in ExpectCapturedStdout()
2334 void ExpectStdoutMatchesText(const std::string& expected_text) { in ExpectStdoutMatchesText() argument
2335 EXPECT_EQ(StripCR(expected_text), StripCR(captured_stdout_)); in ExpectStdoutMatchesText()
2338 void ExpectStderrMatchesText(const std::string& expected_text) { in ExpectStderrMatchesText() argument
2339 EXPECT_EQ(StripCR(expected_text), StripCR(captured_stderr_)); in ExpectStderrMatchesText()
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/reduce/
Dreduce_test_util.cpp62 void CheckEqual(const spv_target_env env, const std::string& expected_text, in CheckEqual() argument
67 t.Assemble(expected_text, &expected_binary, kReduceAssembleOption)); in CheckEqual()
71 void CheckEqual(const spv_target_env env, const std::string& expected_text, in CheckEqual() argument
75 CheckEqual(env, expected_text, actual_binary); in CheckEqual()
Dreduce_test_util.h33 void CheckEqual(spv_target_env env, const std::string& expected_text,
38 void CheckEqual(spv_target_env env, const std::string& expected_text,
/external/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dfuzz_test_util.cpp75 bool IsEqual(const spv_target_env env, const std::string& expected_text, in IsEqual() argument
79 if (!t.Assemble(expected_text, &expected_binary, kFuzzAssembleOption)) { in IsEqual()
85 bool IsEqual(const spv_target_env env, const std::string& expected_text, in IsEqual() argument
89 return IsEqual(env, expected_text, actual_binary); in IsEqual()
Dfuzz_test_util.h38 bool IsEqual(spv_target_env env, const std::string& expected_text,
43 bool IsEqual(spv_target_env env, const std::string& expected_text,
/external/deqp-deps/SPIRV-Tools/test/fuzz/
Dfuzz_test_util.cpp75 bool IsEqual(const spv_target_env env, const std::string& expected_text, in IsEqual() argument
79 if (!t.Assemble(expected_text, &expected_binary, kFuzzAssembleOption)) { in IsEqual()
85 bool IsEqual(const spv_target_env env, const std::string& expected_text, in IsEqual() argument
89 return IsEqual(env, expected_text, actual_binary); in IsEqual()
Dfuzz_test_util.h38 bool IsEqual(spv_target_env env, const std::string& expected_text,
43 bool IsEqual(spv_target_env env, const std::string& expected_text,
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/fuzz/
Dfuzz_test_util.cpp75 bool IsEqual(const spv_target_env env, const std::string& expected_text, in IsEqual() argument
79 if (!t.Assemble(expected_text, &expected_binary, kFuzzAssembleOption)) { in IsEqual()
85 bool IsEqual(const spv_target_env env, const std::string& expected_text, in IsEqual() argument
89 return IsEqual(env, expected_text, actual_binary); in IsEqual()
Dfuzz_test_util.h38 bool IsEqual(spv_target_env env, const std::string& expected_text,
43 bool IsEqual(spv_target_env env, const std::string& expected_text,
/external/icing/icing/tokenization/
Dplain-tokenizer_test.cc340 std::vector<std::string> expected_text = { in TEST_F() local
364 if (i < expected_text.size()) { in TEST_F()
367 EqualsToken(Token::REGULAR, expected_text[i])); in TEST_F()
391 std::vector<std::string> expected_text = { in TEST_F() local
416 if (expected_index < expected_text.size()) { in TEST_F()
419 EqualsToken(Token::REGULAR, expected_text[expected_index])); in TEST_F()
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc111 Status ExpectText(const string& data, const string& expected_text, in ExpectText() argument
115 IncrementOffset(*offset, expected_text.size(), data.size(), &new_offset)); in ExpectText()
117 if (found_text != expected_text) { in ExpectText()
118 return errors::InvalidArgument("Header mismatch: Expected ", expected_text, in ExpectText()
/external/toolchain-utils/afdo_tools/bisection/
Dafdo_prof_analysis_test.py71 expected_text = 'func_a:1\ndata\nfunc_b:2\nmore data\n'
72 self.assertEqual(analysis.json_to_text(example_prof), expected_text)
/external/python/cpython3/Lib/test/
Dtest_pydoc.py442 expected_text = expected_text_pattern % (
446 self.assertEqual(expected_text, result)
680 expected_text = expected_help_pattern % (
686 self.assertEqual(expected_text, result)
1415 expected_text = expected_dynamicattribute_pattern % (
1418 self.assertEqual(expected_text, result)
1437 expected_text = expected_virtualattribute_pattern1 % __name__
1439 self.assertEqual(expected_text, result)
1500 expected_text = expected_missingattribute_pattern % __name__
1502 self.assertEqual(expected_text, result)
/external/python/cpython3/Tools/peg_generator/scripts/
Dtest_parse_directory.py87 expected_text = ast_dump(expected_tree, include_attributes=include_attributes)
89 if actual_text == expected_text:
/external/autotest/client/common_lib/
Dlogging_manager_test.py204 def _compare_logs(self, log_buffer, expected_text): argument
206 expected_lines = expected_text.splitlines()

12