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

Method check_cpp_token

test-suite/handwritten-src/cpp/test_helpers.cpp:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void TestHelpers::check_cpp_token(const std::shared_ptr<UserToken> & in) {
132 // Throws bad_cast if type is wrong
133 (void)dynamic_cast<CppToken &>(*in);
134}
135
136int64_t TestHelpers::cpp_token_id(const std::shared_ptr<UserToken> & in) {
137 return reinterpret_cast<int64_t>(in.get());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected