MCPcopy Create free account
hub / github.com/apache/tvm-ffi / ExampleString

Function ExampleString

tests/cpp/test_example.cc:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void ExampleString() {
157 namespace ffi = tvm::ffi;
158 ffi::String str = "hello world";
159 EXPECT_EQ(str.size(), 11);
160 std::string std_str = str;
161 EXPECT_EQ(std_str, "hello world");
162}
163
164TEST(Example, String) { ExampleString(); }
165

Callers 1

TESTFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected