Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/lldb/test/API/functionalities/data-formatter/builtin-formats/
H A DTestBuiltinFormats.py34 self.assertIn("= false\n", self.getFormatted("boolean", "0"))
35 self.assertIn("= true\n", self.getFormatted("boolean", "1"))
36 self.assertIn("= true\n", self.getFormatted("boolean", "2"))
40 self.assertIn("= 0\n", self.getFormatted("float", "0"))
41 self.assertIn("= 2\n", self.getFormatted("float", "0x40000000"))
42 self.assertIn("= NaN\n", self.getFormatted("float", "-1"))
48 self.assertIn("= 0\n", self.getFormatted("enumeration", "0"))
53 self.assertIn("= 1234567\n", self.getFormatted("dec", "1234567"))
62 self.assertIn("= 04553207\n", self.getFormatted("octal", "1234567"))
76 self.assertIn("= 0x1p1\n", self.getFormatted("hex float", "2.0f"))
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/diagnostics/
H A DTestExprDiagnostics.py32 self.assertIn("\nunknown_identifier\n^\n", value.GetError().GetCString())
33 self.assertIn("<user expression 0>:1:1", value.GetError().GetCString())
38 self.assertIn("\n1 + unknown_identifier", value.GetError().GetCString())
39 self.assertIn("\n ^\n", value.GetError().GetCString())
45 self.assertIn("\nfoobar +=1;\n^\n", value.GetError().GetCString())
47 self.assertIn("<user expression 2>:2:1", value.GetError().GetCString())
58 self.assertIn("<user expression 3>:1:10", value.GetError().GetCString())
63 self.assertIn("\nvoid foo;\n ^", value.GetError().GetCString())
64 self.assertIn("<user expression 4>:2:6", value.GetError().GetCString())
106 self.assertIn("/Foundation.framework/", value.GetError().GetCString())
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/error-limit/
H A DTestExprErrorLimit.py39 self.assertIn("1yerror", str(eval_result.GetError()))
40 self.assertIn("2yerror", str(eval_result.GetError()))
47 self.assertIn("1yerror", str(eval_result.GetError()))
48 self.assertIn("2yerror", str(eval_result.GetError()))
49 self.assertIn("3yerror", str(eval_result.GetError()))
55 self.assertIn("1yerror", str(eval_result.GetError()))
56 self.assertIn("2yerror", str(eval_result.GetError()))
57 self.assertIn("3yerror", str(eval_result.GetError()))
58 self.assertIn("4yerror", str(eval_result.GetError()))
/llvm-project-15.0.7/clang/bindings/python/tests/cindex/
H A 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)
/llvm-project-15.0.7/lldb/test/API/commands/expression/fixits/
H A DTestFixIts.py22 self.assertIn("Fix-it applied", ret_val.GetError())
96 self.assertIn("Fix-it applied, fixed expression was:", ret_val.GetError())
97 self.assertIn("null_pointer->first", ret_val.GetError())
150 self.assertIn("expression failed to parse", errmsg)
151 self.assertIn("using declaration resolved to type without 'typename'",
153 self.assertIn("fixed expression suggested:", errmsg)
154 self.assertIn("using typename T::TypeDef", errmsg)
163 self.assertIn("expression failed to parse", errmsg)
164 self.assertIn("fixed expression suggested:", errmsg)
166 self.assertIn("using typename T::TypeDef", errmsg)
[all …]
/llvm-project-15.0.7/lldb/test/API/tools/lldb-vscode/runInTerminal/
H A DTestVSCode_runInTerminal.py24 self.assertIn("pid", file.readline())
78 self.assertIn('foobar', argv1)
82 self.assertIn('bar', env)
94 …self.assertIn("Could not create a target for a program 'INVALIDPROGRAM': unable to find executable…
106 self.assertIn('"--launch-target" requires "--comm-file" to be specified', proc.stderr)
123 self.assertIn("No such file or directory", self.readErrorMessage(comm_file))
126 self.assertIn("No such file or directory", stderr)
145 self.assertIn("foo", stdout)
165 self.assertIn("FOO=BAR", stdout)
184 self.assertIn("Timed out trying to get messages from the debug adaptor", stderr)
/llvm-project-15.0.7/lldb/test/API/tools/lldb-vscode/module/
H A DTestVSCode_module.py27 …self.assertIn(program_basename, active_modules, '%s module is in active modules' % (program_basena…
28 self.assertIn('name', program_module, 'make sure name is in module')
30 self.assertIn('path', program_module, 'make sure path is in module')
39 self.assertIn('symbolFilePath', program_module)
40 self.assertIn(symbols_path, program_module['symbolFilePath'])
50 self.assertIn('addressRange', program_module)
/llvm-project-15.0.7/libcxx/test/libcxx/selftest/dsl/
H A Ddsl.sh.py276 self.assertIn('__cplusplus', macros.keys())
280 self.assertIn('__cplusplus', macros.keys())
284 self.assertIn('__cplusplus', macros.keys())
289 self.assertIn('__cplusplus', macros.keys())
319 self.assertIn('name', self.config.available_features)
325 self.assertIn('name', self.config.available_features)
342 self.assertIn('name', self.config.available_features)
395 self.assertIn('c++03', self.config.available_features)
403 self.assertIn('c++03', self.config.available_features)
412 self.assertIn('c++11', self.config.available_features)
[all …]
/llvm-project-15.0.7/lldb/test/API/functionalities/thread_plan/
H A DTestThreadPlanCommands.py49 self.assertIn("thread #", result_arr[result_idx], "Found thread header") ; result_idx += 1
50 …self.assertIn("Active plan stack", result_arr[result_idx], "Found active header") ; result_idx += 1
51 …self.assertIn("Element 0: Base thread plan", result_arr[result_idx], "Found base plan") ; result_i…
54 …self.assertIn(text, result_arr[result_idx], "Didn't find active plan: %s"%(text)) ; result_idx += 1
66 …self.assertIn(text, result_arr[result_idx], "Didn't find completed plan: %s"%(text)) ; result_idx …
78 …self.assertIn(text, result_arr[result_idx], "Didn't find discarded plan: %s"%(text)) ; result_idx …
/llvm-project-15.0.7/lldb/test/API/commands/frame/var/
H A DTestFrameVar.py61 self.assertIn("argc", output, "Args didn't find argc")
62 self.assertIn("argv", output, "Args didn't find argv")
72 self.assertIn("test_var", output, "Locals didn't find test_var")
82 self.assertIn("g_var", output, "Globals didn't find g_var")
/llvm-project-15.0.7/lldb/test/API/test_utils/base/
H A DTestBaseTest.py26 self.assertIn("nonexisting-file.cpp", str(e))
32 self.assertIn("CXX_SOURCES", self._traces[0])
33 self.assertIn("return0.o", self._traces[1])
/llvm-project-15.0.7/lldb/test/API/functionalities/history/
H A DTestHistoryRecall.py35 self.assertIn(command, results, "Recorded the actual command")
47 self.assertIn("session history", result.GetOutput(), "!0 didn't rerun session history")
51 self.assertIn("host:", result.GetOutput(), "!-1 didn't rerun platform list.")
/llvm-project-15.0.7/lldb/test/API/functionalities/dyld-launch-linux/
H A DTestDyldLaunchLinux.py47 self.assertIn("main", thread.GetFrameAtIndex(0).GetDisplayFunctionName())
52 self.assertIn("get_signal_crash", thread.GetFrameAtIndex(0).GetDisplayFunctionName())
57 self.assertIn("raise", lldbutil.get_function_names(thread))
/llvm-project-15.0.7/clang/utils/check_cfc/
H A Dtest_check_cfc.py14 self.assertIn('-g', check_cfc.flip_dash_g(['clang', '-c']))
33 self.assertIn(superstring_path, stripped_path_var)
35 self.assertIn(space_path, stripped_path_var)
48 self.assertIn(
/llvm-project-15.0.7/lldb/test/API/functionalities/unused-inlined-parameters/
H A DTestUnusedInlinedParameters.py17 self.assertIn("(void *) unused1 = <no location, value may have been optimized out>",
20 self.assertIn("(int) unused2 = <no location, value may have been optimized out>",
/llvm-project-15.0.7/lldb/test/API/tools/lldb-vscode/breakpoint/
H A DTestVSCode_setBreakpoints.py142 self.assertIn(line, lines, "line expected in lines array")
168 self.assertIn(line, lines, "line expected in lines array")
187 self.assertIn(line, lines, "line expected in lines array")
217 self.assertIn(line, lines, "line expected in lines array")
232 self.assertIn(line, lines, "line expected in lines array")
262 self.assertIn(line, lines, "line expected in lines array")
/llvm-project-15.0.7/lldb/test/API/commands/platform/basic/
H A DTestPlatformPython.py90 self.assertIn('/bin/zsh', sh_cmd.GetShell())
91 self.assertIn('echo $0', sh_cmd.GetCommand())
97 self.assertIn("SUCCESS", sh_cmd.GetOutput())
/llvm-project-15.0.7/lldb/test/API/lang/cpp/operator-overload/
H A DTestOperatorOverload.py16 … self.assertIn("comparison between NULL and non-pointer ('Tinky' and NULL)", str(value.GetError()))
17 self.assertIn("invalid operands to binary expression ('Tinky' and", str(value.GetError()))
/llvm-project-15.0.7/lldb/test/API/commands/session/save/
H A DTestSessionSave.py72 self.assertIn(line, content)
89 self.assertIn(line, content)
119 self.assertIn(line, content)
/llvm-project-15.0.7/lldb/test/API/functionalities/reproducers/fs-case-sensitivity/
H A DTestReproducerFSCaseSensitivity.py41 self.assertIn('Reproducer written', outs)
54 self.assertIn("'case-sensitive': '" + case_sensitive + "'", files_yaml)
/llvm-project-15.0.7/lldb/test/API/tools/lldb-server/
H A DTestLldbGdbServer.py164 self.assertIn('pc', generic_regs)
168 self.assertIn('fp', generic_regs)
171 self.assertIn('sp', generic_regs)
174 self.assertIn('flags', generic_regs)
652 self.assertIn("permissions", mem_region_dict)
653 self.assertIn("r", mem_region_dict["permissions"])
654 self.assertIn("x", mem_region_dict["permissions"])
704 self.assertIn("permissions", mem_region_dict)
705 self.assertIn("r", mem_region_dict["permissions"])
706 self.assertIn("w", mem_region_dict["permissions"])
[all …]
/llvm-project-15.0.7/lldb/test/API/functionalities/reproducers/attach/
H A DTestReproducerAttach.py55 self.assertIn('Process {} stopped'.format(pid), outs)
56 self.assertIn('Reproducer written', outs)
/llvm-project-15.0.7/lldb/test/API/lang/objc/modules-update/
H A DTestClangModulesUpdate.py37 self.assertIn("int i", str(target.FindTypes('Q').GetTypeAtIndex(0)))
55 self.assertIn("int i", str(target.FindTypes('S').GetTypeAtIndex(0)))
/llvm-project-15.0.7/lldb/test/API/tools/lldb-vscode/launch/
H A DTestVSCode_launch.py34 self.assertIn(program, lines[0],
105 self.assertIn(quote_path, line,
203 self.assertIn(quote_path, line,
229 self.assertIn(quote_path, line,
256 self.assertIn(quoted_arg, lines[i],
/llvm-project-15.0.7/lldb/test/API/functionalities/process_crash_info/
H A DTestProcessCrashInfo.py68 self.assertIn("pointer being freed was not allocated", stream.GetData())
89 self.assertIn("No structured data.", error.GetCString())

12345