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

Function TEST

tests/cpp/test_string.cc:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace tvm::ffi;
26
27TEST(String, MoveFromStd) {
28 using namespace std;
29 string source = "this is a string";
30 string expect = source;
31 String s(std::move(source));
32 string copy = string(s);
33 EXPECT_EQ(copy, expect);
34 EXPECT_EQ(source.size(), 0); // NOLINT(bugprone-use-after-move)
35}
36
37TEST(String, CopyFromStd) {
38 using namespace std;

Callers

nothing calls this directly

Calls 15

StableHashBytesFunction · 0.85
EscapeStringJSONFunction · 0.85
EscapedStringPyFunction · 0.85
c_strMethod · 0.80
substrMethod · 0.80
starts_withMethod · 0.80
ends_withMethod · 0.80
SplitMethod · 0.80
StringClass · 0.50
BytesClass · 0.50
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected