MCPcopy Create free account
hub / github.com/dmlc/treelite / TEST

Function TEST

tests/cpp/test_model_loader.cc:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "model_loader/detail/xgboost.h"
16
17TEST(ModelLoader, StringTrim) {
18 std::string s{"foobar\r\n"};
19 treelite::model_loader::detail::StringTrimFromEnd(s);
20 EXPECT_EQ(s, "foobar");
21}
22
23TEST(ModelLoader, StringStartsWith) {
24 std::string s{"foobar"};

Callers

nothing calls this directly

Calls 3

StringTrimFromEndFunction · 0.85
StringStartsWithFunction · 0.85
ParseBaseScoreFunction · 0.85

Tested by

no test coverage detected