Home
last modified time | relevance | path

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

12345

/arkcompiler/runtime_core/libpandabase/tests/
Dexpected_test.cpp26 static Expected<int, ErrorCode> helper(int v) in helper()
46 TEST(Expected, Unexpected) in TEST() argument
55 TEST(Expected, Ctor) in TEST() argument
58 auto e = Expected<int, ErrorCode>(v); in TEST()
63 auto e0 = Expected<int, ErrorCode>(); in TEST()
66 auto e1 = Expected<int, ErrorCode>(2); in TEST()
69 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST()
71 auto e3 = Expected<int, ErrorCode>(u); in TEST()
77 EXPECT_FALSE((std::is_default_constructible_v<Expected<NonDefaultConstructible, ErrorCode>>)); in TEST()
80 TEST(Expected, Access) in TEST() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.h28 static Expected<JSTaggedValue, bool> ExecuteFromFile(JSThread *thread, const CString &filename,
31 …static Expected<JSTaggedValue, bool> ExecuteFromBuffer(JSThread *thread, const void *buffer, size_…
34 …static Expected<JSTaggedValue, bool> ExecuteModuleBuffer(JSThread *thread, const void *buffer, siz…
36 …static Expected<JSTaggedValue, bool> CommonExecuteBuffer(JSThread *thread, bool isBundle, const CS…
38 static Expected<JSTaggedValue, bool> Execute(JSThread *thread, const JSPandaFile *jsPandaFile,
42 …static Expected<JSTaggedValue, bool> ExecuteFromBufferSecure(JSThread *thread, uint8_t *buffer, si…
45 …static Expected<JSTaggedValue, bool> ExecuteModuleBufferSecure(JSThread *thread, uint8_t *buffer, …
48 …static Expected<JSTaggedValue, bool> CommonExecuteBuffer(JSThread *thread, const CString &filename,
Djs_pandafile_executor.cpp32 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteFromFile(JSThread *thread, const CString … in ExecuteFromFile()
113 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteFromBuffer(JSThread *thread, in ExecuteFromBuffer()
143 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteModuleBuffer( in ExecuteModuleBuffer()
193 Expected<JSTaggedValue, bool> JSPandaFileExecutor::CommonExecuteBuffer(JSThread *thread, in CommonExecuteBuffer()
218 Expected<JSTaggedValue, bool> JSPandaFileExecutor::Execute(JSThread *thread, const JSPandaFile *jsP… in Execute()
227Expected<JSTaggedValue, bool> result = context->InvokeEcmaEntrypoint(jsPandaFile, entryPoint, excu… in Execute()
247 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteFromBufferSecure(JSThread *thread, uint8_… in ExecuteFromBufferSecure()
275 Expected<JSTaggedValue, bool> JSPandaFileExecutor::CommonExecuteBuffer(JSThread *thread, const CStr… in CommonExecuteBuffer()
300 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteModuleBufferSecure(JSThread *thread, uint… in ExecuteModuleBufferSecure()
/arkcompiler/runtime_core/libpandabase/utils/
Dexpected.h66 class Expected final {
69 Expected() noexcept : v_(T()) in Expected() function
74 Expected(T v) noexcept(std::is_nothrow_move_constructible_v<T>) : v_(std::move(v)) {} in noexcept()
76Expected(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value… in noexcept()
150 ~Expected() = default;
152 DEFAULT_COPY_SEMANTIC(Expected);
153 DEFAULT_MOVE_SEMANTIC(Expected);
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dfile.h44 Expected<size_t, Error> Read(void *buf, size_t n) const in Read()
63 Expected<size_t, Error> Write(const void *buf, size_t n) const in Write()
87 Expected<size_t, Error> GetFileSize() const in GetFileSize()
122 static Expected<std::string, Error> GetTmpPath();
124 static Expected<std::string, Error> GetExecutablePath();
126 static Expected<std::string, Error> GetAbsolutePath(std::string_view relative_path) in GetAbsolutePath()
Dlibrary_loader.cpp21 Expected<LibraryHandle, Error> Load(std::string_view filename) in Load()
32 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol()
Dfile.cpp65 Expected<std::string, Error> File::GetTmpPath() in GetTmpPath()
76 Expected<std::string, Error> File::GetExecutablePath() in GetExecutablePath()
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dfile.h51 Expected<size_t, Error> Read(void *buf, size_t n) const in Read()
70 Expected<size_t, Error> Write(const void *buf, size_t n) const in Write()
94 Expected<size_t, Error> GetFileSize() const in GetFileSize()
131 static Expected<std::string, Error> GetTmpPath() in GetTmpPath()
145 static Expected<std::string, Error> GetExecutablePath() in GetExecutablePath()
166 static Expected<std::string, Error> GetAbsolutePath(std::string_view relative_path) in GetAbsolutePath()
Dlibrary_loader_load.cpp27 Expected<LibraryHandle, Error> Load(std::string_view filename) in Load()
Dlibrary_loader_resolve_symbol.cpp28 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol()
Dexec.cpp32 Expected<int, Error> Exec(Span<const char *> args) in Exec()
/arkcompiler/runtime_core/libpandabase/serializer/
Dserializer.h46 -> std::enable_if_t<std::is_pod_v<T>, Expected<size_t, const char *>>
57 Expected<size_t, const char *>>
77 -> std::enable_if_t<is_hash_mappable_v<UnMap>, Expected<size_t, const char *>>
110 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ T &value) in BufferToType()
124 inline Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std:… in BufferToType()
147 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std::vector… in BufferToType()
173 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std::unorde… in BufferToType()
292 Expected<size_t, const char *> RawBufferToStruct(const uint8_t *data, size_t size, /* out */ Struct… in RawBufferToStruct()
/arkcompiler/runtime_core/libpandabase/os/
Dlibrary_loader.h35 Expected<LibraryHandle, Error> Load(std::string_view filename);
37 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name);
Dexec.h26 Expected<int, Error> Exec(Span<const char *> args);
Dmem.h116 Expected<const std::byte *, Error> MakeReadExec() in MakeReadExec()
126 Expected<const std::byte *, Error> MakeReadOnly() in MakeReadOnly()
136 Expected<std::byte *, Error> MakeReadWrite() in MakeReadWrite()
/arkcompiler/runtime_core/assembler/
Dassembly-parser.h66 Expected<Program, Error> Parse(TokenSet &vectors_tokens, const std::string &file_name = "");
72 Expected<Program, Error> Parse(const std::string &source, const std::string &file_name = "");
208 Expected<Program, Error> ParseAfterMainLoop(const std::string &file_name);
221 Expected<char, Error> ParseOctalEscapeSequence(std::string_view s, size_t *i);
222 Expected<char, Error> ParseHexEscapeSequence(std::string_view s, size_t *i);
223 Expected<char, Error> ParseEscapeSequence(std::string_view s, size_t *i);
Dpandasm.h37 panda::Expected<panda::pandasm::Program, panda::pandasm::Error> &res);
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-class-definiton4-expected.txt1 SyntaxError: Expected '(' [test-class-definiton4.ts:18:7]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dthis-expression-expected.txt1 SyntaxError: Expected an identifier [this-expression.js:17:6]
Dtest-object-expression4-expected.txt1 SyntaxError: Expected an identifier [test-object-expression4.js:18:3]
Dtest-member-expression-1-expected.txt1 SyntaxError: Expected an identifier [test-member-expression-1.js:17:3]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Djs_pandafile_executor_test.cpp87 Expected<JSTaggedValue, bool> result = in HWTEST_F_L0()
123 Expected<JSTaggedValue, bool> result = in HWTEST_F_L0()
161 Expected<JSTaggedValue, bool> result = JSPandaFileExecutor::ExecuteFromBuffer( in HWTEST_F_L0()
/arkcompiler/ets_frontend/test262/
Dharness.patch216 - message: `Expected no error, got ${result.error.name}: ${result.error.message}`,
217 + message: `Expected no error, but got ${result.error.name}: \n ${result.stderr}`,
226 + message: `Expected no error, but got : \n ${result.stderr}`,
234 - message: `Expected test to throw error of type ${test.attrs.negative.type}, got ${result…
235 + message: `Expected test to throw error of type ${test.attrs.negative.type}, but got ${re…
/arkcompiler/runtime_core/tests/verifier-tests/
Dbug_3228.pa25 ldai 0 # Expected panda.NullPointerException
/arkcompiler/runtime_core/tests/cts-assembly/
Dintrinsics-f32-01.pa20 fmovi v1, 0.88622695207595825 # Expected result

12345