Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions source/api_cc/tests/test_read_file_to_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@

#include "common.h"
TEST(TestReadFileToString, readfiletostring) {
std::string file_name = "../../tests/infer/deeppot.pbtxt";
deepmd::convert_pbtxt_to_pb(file_name, "deeppot.pb");
std::string file_content;
deepmd::read_file_to_string("deeppot.pb", file_content);
remove("deeppot.pb");
deepmd::read_file_to_string("../../tests/infer/deeppot.txt", file_content);

std::string file_name_2 = "../../tests/infer/deeppot.txt";
std::stringstream buffer;
Expand Down