@@ -17,7 +17,7 @@ class wal_history_testable : public wal_history {
1717 using wal_history::wal_history;
1818 using wal_history::set_file_operations;
1919 using wal_history::record_size;
20- using wal_history::write_record; // テスト用にpublic化
20+ using wal_history::write_record;
2121};
2222
2323
@@ -275,20 +275,19 @@ TEST_F(wal_history_test, read_all_records_returns_empty_when_exists_false_and_ec
275275 EXPECT_TRUE (records.empty ());
276276}
277277
278- // write_recordの書き込み失敗時に例外が発生するテスト
279278TEST_F (wal_history_test, write_record_throws_on_write_failure) {
280279 wal_history_testable wh (test_dir);
281280 class failing_write_file_ops : public limestone ::internal::real_file_operations {
282281 public:
283282 void ofs_write (std::ofstream& ofs, const char * buf, std::streamsize size) override {
284- ofs.setstate (std::ios::failbit); // 書き込み失敗をシミュレート
283+ ofs.setstate (std::ios::failbit); // Simulate write failure
285284 }
286285 };
287286 auto failing_ops = std::make_unique<failing_write_file_ops>();
288287 wh.set_file_operations (std::move (failing_ops));
289288 boost::filesystem::path file_path = test_dir / " wal_history" ;
290289 auto ofs = std::ofstream (file_path.string (), std::ios::binary);
291- // uuid, timestampはダミー
290+ // uuid and timestamp are dummy
292291 boost::uuids::uuid uuid{};
293292 try {
294293 wh.write_record (ofs, 1 , uuid, 123 );
0 commit comments