| 45 | } |
| 46 | |
| 47 | static bool test_empty_weight_file() { |
| 48 | std::string dir = make_temp_dir("empty_weights"); |
| 49 | write_file(dir + "/config.txt", MINIMAL_CONFIG); |
| 50 | write_file(dir + "/vocab.txt", "hello\nworld\n"); |
| 51 | write_file(dir + "/weights.bin", ""); |
| 52 | bool ok = expect_init_fails(dir); |
| 53 | fs::remove_all(dir); |
| 54 | return ok; |
| 55 | } |
| 56 | |
| 57 | static bool test_missing_vocab() { |
| 58 | std::string dir = make_temp_dir("missing_vocab"); |
no test coverage detected