MCPcopy Create free account
hub / github.com/Snapchat/djinni / optionalProtoToString

Method optionalProtoToString

test-suite/generated-src/wasm/NativeProtoTests.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106}
107std::string NativeProtoTests::optionalProtoToString(const em::val& w_x) {
108 try {
109 auto r = ::testsuite::ProtoTests::optionalProtoToString(::djinni::Optional<std::experimental::optional, ::djinni::Protobuf<::djinni::test::Person, ::djinni::JsClassName<'p','r','o','t','o','t','e','s','t','.','P','e','r','s','o','n'>>>::toCpp(w_x));
110 return ::djinni::String::fromCpp(r);
111 }
112 catch(const std::exception& e) {
113 return ::djinni::ExceptionHandlingTraits<::djinni::String>::handleNativeException(e);
114 }
115}
116em::val NativeProtoTests::stringToOptionalProto(const std::string& w_x) {
117 try {
118 auto r = ::testsuite::ProtoTests::stringToOptionalProto(::djinni::String::toCpp(w_x));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected