Home
last modified time | relevance | path

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

/external/llvm-project/lldb/unittests/Expression/
DDWARFExpressionTest.cpp70 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_lit1, DW_OP_lit0, DW_OP_pick, 0}), in TEST()
72 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_lit1, DW_OP_lit0, DW_OP_pick, 1}), in TEST()
74 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_lit1, DW_OP_lit0, DW_OP_pick, 2}), in TEST()
80 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_const1u, 0x88}), llvm::HasValue(0x88)); in TEST()
81 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_const1s, 0x88}), in TEST()
83 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_const2u, 0x47, 0x88}), in TEST()
85 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_const2s, 0x47, 0x88}), in TEST()
87 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_const4u, 0x44, 0x42, 0x47, 0x88}), in TEST()
89 EXPECT_THAT_EXPECTED(Evaluate({DW_OP_const4s, 0x44, 0x42, 0x47, 0x88}), in TEST()
93 EXPECT_THAT_EXPECTED( in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSourceCodeTests.cpp102 EXPECT_THAT_EXPECTED(positionToOffset(File, position(-1, 2)), llvm::Failed()); in TEST()
104 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, -1)), in TEST()
106 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 0)), in TEST()
108 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 3)), in TEST()
110 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 6)), in TEST()
112 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 7)), in TEST()
114 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 7), false), in TEST()
116 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 8)), in TEST()
118 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 8), false), in TEST()
121 EXPECT_THAT_EXPECTED(positionToOffset(File, position(1, -1)), in TEST()
[all …]
DCodeCompleteTests.cpp1758 EXPECT_THAT_EXPECTED( in TEST()
/external/llvm-project/clang/unittests/Tooling/
DRangeSelectorTest.cpp120 EXPECT_THAT_EXPECTED(selectFromTrivial(node("unbound_id")), in TEST()
144 EXPECT_THAT_EXPECTED( in TEST()
164 EXPECT_THAT_EXPECTED( in TEST()
187 EXPECT_THAT_EXPECTED(after(charRange(CharRange))(Match.Result), in TEST()
192 EXPECT_THAT_EXPECTED(after(charRange(TokenRange))(Match.Result), in TEST()
219 EXPECT_THAT_EXPECTED(after(node("yvar"))(Match.Result), in TEST()
235 EXPECT_THAT_EXPECTED(after(node("yvar"))(Match.Result), in TEST()
251 EXPECT_THAT_EXPECTED(after(node("yvar"))(Match.Result), in TEST()
264 EXPECT_THAT_EXPECTED(select(R, Match), HasValue(", /* comment */ ")); in TEST()
277 EXPECT_THAT_EXPECTED(select(*R, Match), HasValue(", /* comment */ ")); in TEST()
[all …]
DStencilTest.cpp139 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in TEST_F()
165 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in testExpr()
173 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in testFailure()
346 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in TEST_F()
367 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), HasValue("field")); in TEST_F()
376 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
386 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
396 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
406 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
416 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
[all …]
/external/llvm-project/llvm/unittests/DebugInfo/MSF/
DMSFBuilderTest.cpp93 EXPECT_THAT_EXPECTED(Msf.addStream(Blocks.size() * 4096, Blocks), in TEST_F()
111 EXPECT_THAT_EXPECTED(ExpectedMsf, Succeeded()); in TEST_F()
115 EXPECT_THAT_EXPECTED(ExpectedL1, Succeeded()); in TEST_F()
122 EXPECT_THAT_EXPECTED(ExpectedMsf2, Succeeded()); in TEST_F()
125 EXPECT_THAT_EXPECTED(Msf2.addStream(4000), Succeeded()); in TEST_F()
132 EXPECT_THAT_EXPECTED(ExpectedL2, Succeeded()); in TEST_F()
145 EXPECT_THAT_EXPECTED(ExpectedMsf, Succeeded()); in TEST_F()
148 EXPECT_THAT_EXPECTED(Msf.addStream(4096 * 4096 / sizeof(uint32_t)), in TEST_F()
152 EXPECT_THAT_EXPECTED(ExpectedL1, Succeeded()); in TEST_F()
162 EXPECT_THAT_EXPECTED(ExpectedMsf, Succeeded()); in TEST_F()
[all …]
/external/llvm-project/llvm/unittests/DebugInfo/PDB/
DStringTableBuilderTest.cpp63 EXPECT_THAT_EXPECTED(Table.getStringForID(FooID), HasValue("foo")); in TEST()
64 EXPECT_THAT_EXPECTED(Table.getStringForID(BarID), HasValue("bar")); in TEST()
65 EXPECT_THAT_EXPECTED(Table.getStringForID(BazID), HasValue("baz")); in TEST()
66 EXPECT_THAT_EXPECTED(Table.getStringForID(BuzzID), HasValue("buzz")); in TEST()
67 EXPECT_THAT_EXPECTED(Table.getStringForID(BazzID), HasValue("bazz")); in TEST()
68 EXPECT_THAT_EXPECTED(Table.getStringForID(BarrID), HasValue("barr")); in TEST()
70 EXPECT_THAT_EXPECTED(Table.getIDForString("foo"), HasValue(FooID)); in TEST()
71 EXPECT_THAT_EXPECTED(Table.getIDForString("bar"), HasValue(BarID)); in TEST()
72 EXPECT_THAT_EXPECTED(Table.getIDForString("baz"), HasValue(BazID)); in TEST()
73 EXPECT_THAT_EXPECTED(Table.getIDForString("buzz"), HasValue(BuzzID)); in TEST()
[all …]
/external/llvm-project/llvm/unittests/Object/
DMinidumpTest.cpp59 EXPECT_THAT_EXPECTED(File.getSystemInfo(), Failed<BinaryError>()); in TEST()
65 EXPECT_THAT_EXPECTED(create(FileTooShort), Failed<BinaryError>()); in TEST()
79 EXPECT_THAT_EXPECTED(create(WrongSignature), Failed<BinaryError>()); in TEST()
93 EXPECT_THAT_EXPECTED(create(WrongVersion), Failed<BinaryError>()); in TEST()
107 EXPECT_THAT_EXPECTED(create(DirectoryAfterEOF), Failed<BinaryError>()); in TEST()
121 EXPECT_THAT_EXPECTED(create(TruncatedDirectory), Failed<BinaryError>()); in TEST()
135 EXPECT_THAT_EXPECTED(create(Stream0AfterEOF), Failed<BinaryError>()); in TEST()
149 EXPECT_THAT_EXPECTED(create(Stream0Truncated), Failed<BinaryError>()); in TEST()
166 EXPECT_THAT_EXPECTED(create(DuplicateStream), Failed<BinaryError>()); in TEST()
180 EXPECT_THAT_EXPECTED(create(DenseMapInfoConflict), Failed<BinaryError>()); in TEST()
[all …]
/external/llvm-project/llvm/unittests/FileCheck/
DFileCheckTest.cpp187 EXPECT_THAT_EXPECTED(MatchingString, Failed()); in checkMatchingStringFailure()
1031 EXPECT_THAT_EXPECTED(Tester.parseSubst("VAR1:"), Succeeded()); in TEST_F()
1032 EXPECT_THAT_EXPECTED(Tester.parseSubst(" VAR2:"), Succeeded()); in TEST_F()
1033 EXPECT_THAT_EXPECTED(Tester.parseSubst("VAR3 :"), Succeeded()); in TEST_F()
1034 EXPECT_THAT_EXPECTED(Tester.parseSubst("VAR3: "), Succeeded()); in TEST_F()
1040 EXPECT_THAT_EXPECTED(Tester.parseSubst("%X, VAR_UPPER_HEX:"), Succeeded()); in TEST_F()
1047 EXPECT_THAT_EXPECTED(Tester.parseSubst("FOOBAR: FOO+1"), Succeeded()); in TEST_F()
1087 EXPECT_THAT_EXPECTED(Tester.parseSubst(""), Succeeded()); in TEST_F()
1094 EXPECT_THAT_EXPECTED(Tester.parseSubst("FOO"), Succeeded()); in TEST_F()
1095 EXPECT_THAT_EXPECTED(Tester.parseSubst("18"), Succeeded()); in TEST_F()
[all …]
/external/llvm-project/llvm/unittests/DebugInfo/DWARF/
DDWARFDieTest.cpp78 EXPECT_THAT_EXPECTED(Die.getLocations(DW_AT_location), in TEST()
82 EXPECT_THAT_EXPECTED( in TEST()
86 EXPECT_THAT_EXPECTED( in TEST()
92 EXPECT_THAT_EXPECTED( in TEST()
97 EXPECT_THAT_EXPECTED( in TEST()
DDWARFDataExtractorTest.cpp97 EXPECT_THAT_EXPECTED( in TEST()
104 EXPECT_THAT_EXPECTED( in TEST()
110 EXPECT_THAT_EXPECTED( in TEST()
118 EXPECT_THAT_EXPECTED( in TEST()
125 EXPECT_THAT_EXPECTED( in TEST()
132 EXPECT_THAT_EXPECTED( in TEST()
139 EXPECT_THAT_EXPECTED( in TEST()
146 EXPECT_THAT_EXPECTED( in TEST()
DDWARFDebugLineTest.cpp185 EXPECT_THAT_EXPECTED( in TEST_F()
190 EXPECT_THAT_EXPECTED( in TEST_F()
196 EXPECT_THAT_EXPECTED( in TEST_F()
211 EXPECT_THAT_EXPECTED( in TEST_F()
217 EXPECT_THAT_EXPECTED( in TEST_F()
321 EXPECT_THAT_EXPECTED( in TEST_F()
345 EXPECT_THAT_EXPECTED( in TEST_P()
387 EXPECT_THAT_EXPECTED(ExpectedLineTable, Succeeded()); in TEST_F()
1728 EXPECT_THAT_EXPECTED(ExpectedLineTable, Succeeded()); in TEST_F()
/external/llvm-project/lldb/unittests/Host/
DNativeProcessProtocolTest.cpp88 EXPECT_THAT_EXPECTED( in TEST()
91 EXPECT_THAT_EXPECTED(Process.ReadMemoryWithoutTrap(0, 6), in TEST()
93 EXPECT_THAT_EXPECTED(Process.ReadMemoryWithoutTrap(6, 4), in TEST()
95 EXPECT_THAT_EXPECTED(Process.ReadMemoryWithoutTrap(6, 2), in TEST()
97 EXPECT_THAT_EXPECTED(Process.ReadMemoryWithoutTrap(4, 2), in TEST()
111 EXPECT_THAT_EXPECTED(Process.ReadCStringFromMemory( in TEST()
127 EXPECT_THAT_EXPECTED(Process.ReadCStringFromMemory( in TEST()
144 EXPECT_THAT_EXPECTED(Process.ReadCStringFromMemory(string_start, &string[0], in TEST()
/external/llvm-project/compiler-rt/lib/xray/tests/unit/
Dfdr_controller_test.cpp72 EXPECT_THAT_EXPECTED( in TEST_F()
96 EXPECT_THAT_EXPECTED( in TEST_F()
117 EXPECT_THAT_EXPECTED(TraceOrErr, HasValue(IsEmpty())); in TEST_F()
132 EXPECT_THAT_EXPECTED( in TEST_F()
156 EXPECT_THAT_EXPECTED( in TEST_F()
180 EXPECT_THAT_EXPECTED( in TEST_F()
213 EXPECT_THAT_EXPECTED(TraceOrErr, HasValue(IsEmpty())); in TEST_F()
247 EXPECT_THAT_EXPECTED(TraceOrErr, HasValue(IsEmpty())); in TEST_F()
285 EXPECT_THAT_EXPECTED( in TEST_F()
331 EXPECT_THAT_EXPECTED(TraceOrErr, HasValue(SizeIs(kBuffers * 2))); in TEST_F()
[all …]
Dfdr_log_writer_test.cpp69 EXPECT_THAT_EXPECTED( in TEST()
122 EXPECT_THAT_EXPECTED( in TEST()
157 EXPECT_THAT_EXPECTED(TraceOrErr, HasValue(IsEmpty())); in TEST()
/external/llvm-project/llvm/unittests/Support/
DErrorTest.cpp770 EXPECT_THAT_EXPECTED(Expected<int>(0), Succeeded()); in TEST()
772 EXPECT_THAT_EXPECTED(Expected<int>(make_error<CustomError>(0)), in TEST()
776 EXPECT_THAT_EXPECTED(Expected<int &>(a), Succeeded()); in TEST()
809 EXPECT_THAT_EXPECTED(Expected<int>(make_error<CustomError>(0)), Failed()); in TEST()
811 EXPECT_THAT_EXPECTED(Expected<int>(0), Failed()), in TEST()
813 EXPECT_THAT_EXPECTED(Expected<int &>(make_error<CustomError>(0)), Failed()); in TEST()
817 EXPECT_THAT_EXPECTED(Expected<int>(0), HasValue(0)); in TEST()
819 EXPECT_THAT_EXPECTED(Expected<int>(make_error<CustomError>(0)), in TEST()
824 EXPECT_THAT_EXPECTED(Expected<int>(1), HasValue(0)), in TEST()
829 EXPECT_THAT_EXPECTED(Expected<int &>(a), HasValue(testing::Eq(1))); in TEST()
[all …]
DJSONTest.cpp447 EXPECT_THAT_EXPECTED(E, FailedWithMessage("missing value at (root)[1].str")); in TEST()
452 EXPECT_THAT_EXPECTED( in TEST()
459 EXPECT_THAT_EXPECTED(E, Succeeded()); in TEST()
DPath.cpp1828 EXPECT_THAT_EXPECTED(Read(5), HasValue("01234")); in TEST_F()
1829 EXPECT_THAT_EXPECTED(Read(3), HasValue("012")); in TEST_F()
1830 EXPECT_THAT_EXPECTED(Read(6), HasValue("01234")); in TEST_F()
1848 EXPECT_THAT_EXPECTED(Read(0, 5), HasValue("01234")); in TEST_F()
1849 EXPECT_THAT_EXPECTED(Read(0, 3), HasValue("012")); in TEST_F()
1850 EXPECT_THAT_EXPECTED(Read(2, 3), HasValue("234")); in TEST_F()
1851 EXPECT_THAT_EXPECTED(Read(0, 6), HasValue("01234")); in TEST_F()
1852 EXPECT_THAT_EXPECTED(Read(2, 6), HasValue("234")); in TEST_F()
1853 EXPECT_THAT_EXPECTED(Read(5, 5), HasValue("")); in TEST_F()
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp129 EXPECT_THAT_EXPECTED(major_version_value, llvm::HasValue(PY_MAJOR_VERSION)); in TEST_F()
130 EXPECT_THAT_EXPECTED(minor_version_value, llvm::HasValue(PY_MINOR_VERSION)); in TEST_F()
144 EXPECT_THAT_EXPECTED(version_major, llvm::HasValue(PY_MAJOR_VERSION)); in TEST_F()
145 EXPECT_THAT_EXPECTED(version_minor, llvm::HasValue(PY_MINOR_VERSION)); in TEST_F()
160 EXPECT_THAT_EXPECTED(version_major, llvm::HasValue(PY_MAJOR_VERSION)); in TEST_F()
161 EXPECT_THAT_EXPECTED(version_minor, llvm::HasValue(PY_MINOR_VERSION)); in TEST_F()
176 EXPECT_THAT_EXPECTED(python_int_value, llvm::HasValue(12)); in TEST_F()
188 EXPECT_THAT_EXPECTED(e, llvm::HasValue(40)); in TEST_F()
194 EXPECT_THAT_EXPECTED(value, llvm::HasValue(7)); in TEST_F()
371 EXPECT_THAT_EXPECTED(e, llvm::HasValue(long_value0)); in TEST_F()
[all …]
/external/llvm-project/llvm/unittests/ExecutionEngine/Orc/
DCoreAPIsTest.cpp145 EXPECT_THAT_EXPECTED( in TEST_F()
148 EXPECT_THAT_EXPECTED( in TEST_F()
625 EXPECT_THAT_EXPECTED(std::move(Result), Failed()); in TEST_F()
635 EXPECT_THAT_EXPECTED(std::move(Result), Failed()); in TEST_F()
663 EXPECT_THAT_EXPECTED(ES.lookup({&JD}, {Bar}), Failed()) in TEST_F()
666 EXPECT_THAT_EXPECTED(ES.lookup({&JD}, {Foo}), Failed()) in TEST_F()
694 EXPECT_THAT_EXPECTED(std::move(Result), Failed()); in TEST_F()
704 EXPECT_THAT_EXPECTED(std::move(Result), Failed()); in TEST_F()
733 EXPECT_THAT_EXPECTED(ES.lookup({&JD}, {Bar}), Failed()) in TEST_F()
736 EXPECT_THAT_EXPECTED(ES.lookup({&JD}, {Foo}), Failed()) in TEST_F()
[all …]
DResourceTrackerTest.cpp216 EXPECT_THAT_EXPECTED(Result, Failed<FailedToMaterialize>()) in TEST_F()
/external/llvm-project/lldb/unittests/TestingSupport/Symbol/
DYAMLModuleTester.cpp19 EXPECT_THAT_EXPECTED(File, llvm::Succeeded()); in YAMLModuleTester()
/external/llvm-project/lldb/unittests/Process/minidump/
DMinidumpParserTest.cpp248 EXPECT_THAT_EXPECTED(parser->GetMinidumpFile().getString(M.ModuleNameRVA), in TEST_F()
862 EXPECT_THAT_EXPECTED( in TEST_F()
866 EXPECT_THAT_EXPECTED( in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Testing/Support/
DError.h138 #define EXPECT_THAT_EXPECTED(Err, Matcher) \ macro
/external/llvm-project/llvm/include/llvm/Testing/Support/
DError.h168 #define EXPECT_THAT_EXPECTED(Err, Matcher) \ macro