Home
last modified time | relevance | path

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

1234

/arkcompiler/runtime_core/libpandabase/tests/
Dexpected_test.cpp30 return Unexpected {ErrorCode::First}; in helper()
34 return Unexpected {ErrorCode::Second}; in helper()
46 TEST(Expected, Unexpected) in TEST() argument
49 auto u = Unexpected(e); in TEST()
50 EXPECT_EQ(Unexpected<int>(1).Value(), 1); in TEST()
52 EXPECT_EQ(static_cast<const Unexpected<int> &>(u).Value(), 1); in TEST()
69 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST()
70 auto u = Unexpected(ErrorCode::Second); in TEST()
82 const auto e1 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST()
84 EXPECT_EQ((Expected<int, ErrorCode>(Unexpected(ErrorCode::Second)).Error()), ErrorCode::Second); in TEST()
[all …]
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dexec.cpp45 return Unexpected(Error(errno)); in Exec()
50 return Unexpected(Error(errno)); in Exec()
55 return Unexpected(Error("Process finished improperly")); in Exec()
Dfile.h55 return Unexpected(Error(errno)); in Read()
74 return Unexpected(Error(errno)); in Write()
108 return Unexpected(Error(errno)); in GetFileSize()
152 return Unexpected(Error(errno)); in GetExecutablePath()
157 return Unexpected(Error(errno)); in GetExecutablePath()
171 return Unexpected(Error(errno)); in GetAbsolutePath()
Dlibrary_loader_load.cpp34 return msg != nullptr ? Unexpected(Error(msg)) : Unexpected(Error("no error message")); in Load()
Dlibrary_loader_resolve_symbol.cpp35 return msg != nullptr ? Unexpected(Error(msg)) : Unexpected(Error("no error message")); in ResolveSymbol()
/arkcompiler/runtime_core/libpandabase/utils/
Dexpected.h27 class Unexpected final {
29 explicit Unexpected(E e) noexcept(std::is_nothrow_move_constructible_v<E>) : e_(std::move(e)) {} in Unexpected() function
44 ~Unexpected() = default;
46 DEFAULT_COPY_SEMANTIC(Unexpected);
47 NO_MOVE_SEMANTIC(Unexpected);
76 …Expected(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value… in noexcept()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.cpp67 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromFile()
86 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromFile()
102 return Unexpected(false); in ExecuteFromFile()
122 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBuffer()
133 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBuffer()
165 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteModuleBuffer()
184 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteModuleBuffer()
209 return Unexpected(false); in CommonExecuteBuffer()
256 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBufferSecure()
267 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBufferSecure()
[all …]
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dfile.h48 return Unexpected(Error(errno)); in Read()
67 return Unexpected(Error(errno)); in Write()
95 return Unexpected(Error(errno)); in GetFileSize()
132 return Unexpected(Error(errno)); in GetAbsolutePath()
Dlibrary_loader.cpp28 …return Unexpected(Error(std::string("Failed to load library ") + filename.data() + std::string(", … in Load()
39 …return Unexpected(Error(std::string("Failed to resolve symbol ") + name.data() + std::string(", er… in ResolveSymbol()
Dfile.cpp70 return Unexpected(Error(GetLastError())); in GetTmpPath()
81 return Unexpected(Error(GetLastError())); in GetExecutablePath()
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-switch-6-expected.txt1 SyntaxError: Unexpected token [test-switch-6.js:18:36]
Dnew-expression-expected.txt1 SyntaxError: Unexpected token [new-expression.js:17:8]
Dtest-switch-1-expected.txt1 SyntaxError: Unexpected token, expected '(' [test-switch-1.js:18:1]
Dtest-do-while-1-expected.txt1 SyntaxError: Unexpected token [test-do-while-1.js:17:10]
Dtest-switch-2-expected.txt1 SyntaxError: Unexpected token, expected '(' [test-switch-2.js:17:8]
Dtest-member-expression-2-expected.txt1 SyntaxError: Unexpected token [test-member-expression-2.js:17:4]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-interface2-expected.txt1 SyntaxError: Unexpected token [test-interface2.ts:17:11]
Dtest-class-definiton5-expected.txt1 SyntaxError: Unexpected modifier [test-class-definiton5.ts:18:14]
Dtest-as-expression4-expected.txt1 SyntaxError: Unexpected token [test-as-expression4.ts:17:20]
Dtest-keyword-declare3-expected.txt1 SyntaxError: Unexpected token [test-keyword-declare3.ts:17:9]
Dtest-as-expression6-expected.txt1 SyntaxError: Unexpected token [test-as-expression6.ts:17:19]
Dtest-class-definiton3-expected.txt1 SyntaxError: Unexpected modifier [test-class-definiton3.ts:18:12]
Dtest-type-alias1-expected.txt1 SyntaxError: Unexpected token [test-type-alias1.ts:17:6]
Dtest-ts-mapped-type1-expected.txt1 SyntaxError: Unexpected token [test-ts-mapped-type1.ts:17:17]
Dtest-ts-type-predicate7-expected.txt1 SyntaxError: Unexpected token [test-ts-type-predicate7.ts:17:63]

1234