Home
last modified time | relevance | path

Searched refs:assertIn (Results 1 – 25 of 755) sorted by relevance

12345678910>>...31

/external/llvm-project/lldb/test/API/functionalities/data-formatter/builtin-formats/
DTestBuiltinFormats.py36 self.assertIn("= false\n", self.getFormatted("boolean", "0"))
37 self.assertIn("= true\n", self.getFormatted("boolean", "1"))
38 self.assertIn("= true\n", self.getFormatted("boolean", "2"))
39 …self.assertIn("= error: unsupported byte size (16) for boolean format\n", self.getFormatted("boole…
42 self.assertIn("= 0\n", self.getFormatted("float", "0"))
43 self.assertIn("= 2\n", self.getFormatted("float", "0x40000000"))
44 self.assertIn("= NaN\n", self.getFormatted("float", "-1"))
46 self.assertIn("= 2\n", self.getFormatted("float", "(__UINT16_TYPE__)0x4000"))
47 …self.assertIn("= error: unsupported byte size (1) for float format\n", self.getFormatted("float", …
50 self.assertIn("= 0\n", self.getFormatted("enumeration", "0"))
[all …]
/external/toolchain-utils/heatmaps/
Dheatmap_generator_test.py80 self.assertIn('out.txt', os.listdir('.'))
84 self.assertIn('101/101: 1 0', lines[0])
96 self.assertIn('out.txt', os.listdir('.'))
100 self.assertIn('101/101: 1 0', lines[0])
101 self.assertIn('101/101: 2 0', lines[1])
102 self.assertIn('101/101: 3 4096', lines[2])
115 self.assertIn('out.txt', os.listdir('.'))
119 self.assertIn('101/101: 1 0', lines[0])
120 self.assertIn('202/202: 2 4096', lines[1])
134 self.assertIn('out.txt', os.listdir('.'))
[all …]
/external/python/cpython2/Lib/test/
Dtest_contains.py23 self.assertIn(1, b)
25 self.assertIn(1, c)
31 self.assertIn('c', 'abc')
34 self.assertIn('', '')
35 self.assertIn('', 'abc')
41 self.assertIn('c', unicode('abc'))
44 self.assertIn('', unicode(''))
45 self.assertIn(unicode(''), '')
46 self.assertIn(unicode(''), unicode(''))
47 self.assertIn('', unicode('abc'))
[all …]
Dtest_peepholer.py29 self.assertIn('POP_JUMP_IF_TRUE', asm)
39 self.assertIn(elem, asm)
50 self.assertIn(elem, asm)
54 self.assertIn('LOAD_CONST', disassemble(f))
67 self.assertIn(elem, asm)
76 self.assertIn(elem, asm)
89 self.assertIn(elem, asm)
128 self.assertIn(elem, asm, asm)
133 self.assertIn('(2)', asm)
134 self.assertIn("('b')", asm)
[all …]
Dtest_inspect.py126 self.assertIn('a', members)
583 self.assertIn(('s', 'static method', A), attrs, 'missing static method')
584 self.assertIn(('c', 'class method', A), attrs, 'missing class method')
585 self.assertIn(('p', 'property', A), attrs, 'missing property')
586 self.assertIn(('m', 'method', A), attrs, 'missing plain method')
587 self.assertIn(('m1', 'method', A), attrs, 'missing plain method')
588 self.assertIn(('datablob', 'data', A), attrs, 'missing data')
589 self.assertIn(('md', 'method', A), attrs, 'missing method descriptor')
590 self.assertIn(('dd', 'data', A), attrs, 'missing data descriptor')
596 self.assertIn(('s', 'static method', A), attrs, 'missing static method')
[all …]
/external/tensorflow/tensorflow/python/eager/
Ddevice_placement_test.py54 self.assertIn('GPU', c.device)
55 self.assertIn('CPU', d.device)
65 self.assertIn('GPU:0', c.device)
66 self.assertIn('CPU', t.device)
74 self.assertIn('GPU:0', c.device)
85 self.assertIn('CPU', c.device)
86 self.assertIn('CPU', d.device)
94 self.assertIn('GPU:0', c.device)
104 self.assertIn('GPU:0', c.device)
112 self.assertIn('CPU:0', a.device)
[all …]
/external/python/cpython3/Lib/test/test_tools/
Dtest_i18n.py77 self.assertIn("Project-Id-Version", header)
78 self.assertIn("POT-Creation-Date", header)
79 self.assertIn("PO-Revision-Date", header)
80 self.assertIn("Last-Translator", header)
81 self.assertIn("Language-Team", header)
82 self.assertIn("MIME-Version", header)
83 self.assertIn("Content-Type", header)
84 self.assertIn("Content-Transfer-Encoding", header)
85 self.assertIn("Generated-By", header)
119 self.assertIn('doc', msgids)
[all …]
/external/llvm-project/lldb/test/API/commands/expression/diagnostics/
DTestExprDiagnostics.py34 self.assertIn("\nunknown_identifier\n^\n", value.GetError().GetCString())
35 self.assertIn("<user expression 0>:1:1", value.GetError().GetCString())
40 self.assertIn("\n1 + unknown_identifier", value.GetError().GetCString())
41 self.assertIn("\n ^\n", value.GetError().GetCString())
47 self.assertIn("\nfoobar +=1;\n^\n", value.GetError().GetCString())
49 self.assertIn("<user expression 2>:2:1", value.GetError().GetCString())
57 self.assertIn("\nvoid foo(unknown_type x) {}\n ^\n", value.GetError().GetCString())
60 self.assertIn("<user expression 3>:1:10", value.GetError().GetCString())
65 self.assertIn("\nvoid foo;\n ^", value.GetError().GetCString())
66 self.assertIn("<user expression 4>:2:6", value.GetError().GetCString())
[all …]
/external/python/cpython3/Lib/test/
Dtest_cgitb.py28 self.assertIn("ValueError", html)
29 self.assertIn(str(err), html)
36 self.assertIn("ValueError", text)
37 self.assertIn("Hello World", text)
47 self.assertIn("ValueError", out)
48 self.assertIn("Hello World", out)
49 self.assertIn("<strong>&lt;module&gt;</strong>", out)
51 self.assertIn('<p>', out)
52 self.assertIn('</p>', out)
63 self.assertIn("ValueError", out)
[all …]
Dtest_contains.py23 self.assertIn(1, b)
25 self.assertIn(1, c)
31 self.assertIn('c', 'abc')
34 self.assertIn('', '')
35 self.assertIn('', 'abc')
43 self.assertIn(i, a)
49 self.assertIn(i, a)
78 self.assertIn(elem, container)
/external/googletest/googletest/test/
Dgoogletest-failfast-unittest.py120 self.assertIn('22 FAILED TEST', txt)
124 self.assertIn('1 FAILED TEST', txt)
125 self.assertIn('[ SKIPPED ] 3 tests', txt)
128 self.assertIn('4 FAILED TEST', txt)
137 self.assertIn('1 FAILED TEST', txt)
138 self.assertIn('[ SKIPPED ] 3 tests', txt)
142 self.assertIn('4 FAILED TEST', txt)
153 self.assertIn('1 FAILED TEST', txt)
154 self.assertIn('[ SKIPPED ] 3 tests', txt)
158 self.assertIn('4 FAILED TEST', txt)
[all …]
/external/llvm-project/lldb/test/API/commands/expression/error-limit/
DTestExprErrorLimit.py41 self.assertIn("1yerror", str(eval_result.GetError()))
42 self.assertIn("2yerror", str(eval_result.GetError()))
49 self.assertIn("1yerror", str(eval_result.GetError()))
50 self.assertIn("2yerror", str(eval_result.GetError()))
51 self.assertIn("3yerror", str(eval_result.GetError()))
57 self.assertIn("1yerror", str(eval_result.GetError()))
58 self.assertIn("2yerror", str(eval_result.GetError()))
59 self.assertIn("3yerror", str(eval_result.GetError()))
60 self.assertIn("4yerror", str(eval_result.GetError()))
/external/llvm-project/clang/bindings/python/tests/cindex/
Dtest_cursor_kind.py17 self.assertIn(CursorKind.UNEXPOSED_DECL, kinds)
18 self.assertIn(CursorKind.TRANSLATION_UNIT, kinds)
19 self.assertIn(CursorKind.VARIABLE_REF, kinds)
20 self.assertIn(CursorKind.LAMBDA_EXPR, kinds)
21 self.assertIn(CursorKind.OBJ_BOOL_LITERAL_EXPR, kinds)
22 self.assertIn(CursorKind.OBJ_SELF_EXPR, kinds)
23 self.assertIn(CursorKind.MS_ASM_STMT, kinds)
24 self.assertIn(CursorKind.MODULE_IMPORT_DECL, kinds)
25 self.assertIn(CursorKind.TYPE_ALIAS_TEMPLATE_DECL, kinds)
/external/toolchain-utils/crosperf/
Dresults_report_unittest.py170 self.assertIn(str(success_keyvals['a_float']), text_report)
171 self.assertIn(success_keyvals['machine'], text_report)
172 self.assertIn(MockCrosMachine.CPUINFO_STRING, text_report)
173 self.assertIn('\nDuration\n', text_report)
174 self.assertIn('Total experiment time:\n', text_report)
175 self.assertIn('Cooldown wait time:\n', text_report)
176 self.assertIn('DUT %s: %d min' % (experiment.remote[0], 12), text_report)
177 self.assertIn('DUT %s: %d min' % (experiment.remote[1], 8), text_report)
243 self.assertIn('no result', output.summary_table)
244 self.assertIn('no result', output.full_table)
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_grep.py55 self.assertIn('invalid', s.getvalue())
64 self.assertIn(os.path.join(os.curdir, filename), filelist)
75 self.assertIn(self.realpath, filelist)
82 self.assertIn(readme, filelist)
100 self.assertIn(grepfile, filelist)
108 self.assertIn(grepfile, filelist)
110 self.assertIn(self.realpath, filelist)
115 self.assertIn(self.realpath, filelist)
135 self.assertIn(pat, lines[0])
143 self.assertIn(pat, lines[0])
[all …]
/external/tensorflow/tensorflow/python/util/
Dtf_should_use_test.py52 self.assertIn('Object was never used', msg)
54 self.assertIn('blah0:0', msg)
55 self.assertIn('in_this_function', msg)
68 self.assertIn('Object was never used', msg)
69 self.assertIn('in_this_function', msg)
107 self.assertIn('Object was never used', msg)
109 self.assertIn('blah2:0', msg)
110 self.assertIn('return_const', msg)
126 self.assertIn('Object was never used', msg)
128 self.assertIn('blah3:0', msg)
[all …]
/external/tensorflow/tensorflow/python/framework/
Derror_interpolation_test.py83 self.assertIn("nodename", summary)
84 self.assertIn("tf.device(/cpu:0)", summary)
85 self.assertIn("<hope.py:24>", summary)
86 self.assertIn("tf.device(/gpu:2)", summary)
87 self.assertIn("<please.py:42>", summary)
93 self.assertIn("nodename", summary)
94 self.assertIn("No device assignments", summary)
110 self.assertIn("node_name", summary)
111 self.assertIn("colocate_with(test_node_1)", summary)
112 self.assertIn("<test_1.py:27>", summary)
[all …]
/external/tensorflow/tensorflow/tools/compatibility/
Dast_edits_test.py193 self.assertIn("Using member a.b.c", errors[0])
194 self.assertIn("1:0", errors[0])
195 self.assertIn("Using member a.b.c", errors[0])
196 self.assertIn("1:6", errors[1])
229 self.assertIn("Manual check required", report)
243 self.assertIn(new_text, acceptable_outputs)
258 self.assertIn(new_text, acceptable_outputs)
269 self.assertIn(new_text, acceptable_outputs)
275 self.assertIn("Manual check required", report)
292 self.assertIn(new_text, acceptable_outputs)
[all …]
Dtf_upgrade_v2_test.py249 self.assertIn(
317 self.assertIn(new_function_name.replace("tf.compat.v2.", "tf."),
324 self.assertIn(
336 self.assertIn(
445 self.assertIn("switch to the schedules in "
664 self.assertIn(
690 self.assertIn(
930 self.assertIn("tf.nn.dropout called without arguments", errors[0])
955 self.assertIn("Dropping scope", unused_report)
968 self.assertIn("Dropping scope", unused_report)
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dplacement_test.py165 self.assertIn("gpu:0", dataset._variant_tensor.device.lower())
166 self.assertIn("gpu:0", iterator._iterator_resource.device.lower())
167 self.assertIn("gpu:0", data.device.lower())
168 self.assertIn("gpu:0", optional_data.get_value().device.lower())
169 self.assertIn("gpu:0", optional_data.has_value().device.lower())
187 self.assertIn(b"GPU:0", self.evaluate(dataset_device))
191 self.assertIn(b"GPU:0", self.evaluate(iterator_device))
195 self.assertIn(b"GPU:0", self.evaluate(data_device))
199 self.assertIn(b"GPU:0", self.evaluate(get_value_device))
203 self.assertIn(b"GPU:0", self.evaluate(has_value_device))
[all …]
/external/toolchain-utils/afdo_redaction/
Dredact_profile_test.py111 self.assertIn('Retained 1/1 functions', summary)
112 self.assertIn('Retained 827/827 samples, total', summary)
115 self.assertIn('Retained 335/335 top-level samples', summary)
120 self.assertIn('Retained 0/100 functions', summary)
121 self.assertIn('Retained 0/82,700 samples, total', summary)
122 self.assertIn('Retained 0/33,500 top-level samples', summary)
130 self.assertIn('Retained 1/101 functions', summary)
131 self.assertIn('Retained 1,575/84,275 samples, total', summary)
132 self.assertIn('Retained 1,083/34,583 top-level samples', summary)
/external/tensorflow/tensorflow/python/kernel_tests/
Dlogging_ops_test.py82 self.assertIn((expected + "\n"), printed.contents())
91 self.assertIn((expected + "\n"), printed.contents())
100 self.assertIn((expected + "\n"), printed.contents())
108 self.assertIn((expected + "\n"), printed.contents())
116 self.assertIn((expected + "\n"), printed.contents())
124 self.assertIn((expected + "\n"), printed.contents())
134 self.assertIn((expected + "\n"), printed.contents())
147 self.assertIn((expected + "\n"), printed.contents())
155 self.assertIn((expected + "\n"), printed.contents())
163 self.assertIn(expected + "\n", printed.contents())
[all …]
/external/tensorflow/tensorflow/python/debug/lib/
Dcheck_numerics_callback_test.py159 self.assertIn("shape: (2,)\n", message)
160 self.assertIn("# of +Inf elements: 1\n", message)
161 self.assertIn("0: %s" % x, message)
162 self.assertIn("1: %s" % y, message)
177 self.assertIn("shape: (2,)\n", message)
178 self.assertIn("# of +Inf elements: 1\n", message)
179 self.assertIn("0: %s" % x, message)
180 self.assertIn("1: %s" % y, message)
195 self.assertIn("shape: (1, 1)\n", message)
196 self.assertIn("# of -Inf elements: 1\n", message)
[all …]
Dsource_utils_test.py97 self.assertIn(
200 self.assertIn(self.u_init.op.name,
202 self.assertIn(self.u.op.name, source_annotation[self.u_line_number])
203 self.assertIn(self.v_init.op.name,
205 self.assertIn(self.v.op.name, source_annotation[self.v_line_number])
206 self.assertIn(self.w.op.name, source_annotation[self.w_line_number])
210 self.assertIn(self.u_init.op.name,
212 self.assertIn(self.u.op.name, source_annotation[self.helper_line_number])
213 self.assertIn(self.v_init.op.name,
215 self.assertIn(self.v.op.name, source_annotation[self.helper_line_number])
[all …]
/external/tensorflow/tensorflow/python/autograph/converters/
Dfunctions_test.py44 self.assertIn('f/', result_op.op.name)
62 self.assertIn('f/', result_op.op.name)
63 self.assertIn('First sentence.', tr.__doc__)
64 self.assertIn('Second sentence.', tr.__doc__)
79 self.assertIn('f/', first.op.name)
81 self.assertIn('f/inner_fn/', second.op.inputs[0].name)
115 self.assertIn('f/', first.op.name)
117 self.assertIn('f/inner_fn/', second.op.inputs[0].name)

12345678910>>...31