| 25 | using namespace tvm::ffi; |
| 26 | |
| 27 | TEST(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 | |
| 37 | TEST(String, CopyFromStd) { |
| 38 | using namespace std; |
nothing calls this directly
no test coverage detected