MCPcopy Create free account
hub / github.com/NVIDIA/DALI / LoadTestFile

Function LoadTestFile

dali/operators/video/input/video_input_test.cc:70–77  ·  view source on GitHub ↗

* Load the test file as a binary string. */

Source from the content-addressed store, hash-verified

68 * Load the test file as a binary string.
69 */
70std::string LoadTestFile(const std::string &test_file_path) {
71 std::ifstream fin(test_file_path, std::ios::binary);
72 if (!fin)
73 throw std::runtime_error(std::string("Failed to open model file: ") + test_file_path);
74 std::stringstream ss;
75 ss << fin.rdbuf();
76 return ss.str();
77}
78
79} // namespace
80

Callers 2

DoTestMethod · 0.85
TYPED_TESTFunction · 0.85

Calls 1

strMethod · 0.80

Tested by

no test coverage detected