aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-03-21 13:54:51 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-03-21 13:54:11 +0100
commitfa67b8181c3ecf94395ecc50fd8acd436f1f8c3a (patch)
treef503e5f15899606108accc0f63e6a99f24823c04 /src/test
parent40e1c4d4024b8ad35f2511b2e10bf80c5531dfde (diff)
Refactor: Remove unused FlatFilePos::SetNull
Diffstat (limited to 'src/test')
-rw-r--r--src/test/flatfile_tests.cpp3
-rw-r--r--src/test/fuzz/flatfile.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/flatfile_tests.cpp b/src/test/flatfile_tests.cpp
index 9931d19c2b..54c30ed314 100644
--- a/src/test/flatfile_tests.cpp
+++ b/src/test/flatfile_tests.cpp
@@ -23,6 +23,9 @@ BOOST_AUTO_TEST_CASE(flatfile_filename)
FlatFileSeq seq2(data_dir / "a", "b", 16 * 1024);
BOOST_CHECK_EQUAL(seq2.FileName(pos), data_dir / "a" / "b00456.dat");
+
+ // Check default constructor IsNull
+ assert(FlatFilePos{}.IsNull());
}
BOOST_AUTO_TEST_CASE(flatfile_open)
diff --git a/src/test/fuzz/flatfile.cpp b/src/test/fuzz/flatfile.cpp
index d142e374b1..b5c82c14b4 100644
--- a/src/test/fuzz/flatfile.cpp
+++ b/src/test/fuzz/flatfile.cpp
@@ -25,6 +25,4 @@ FUZZ_TARGET(flatfile)
assert((*flat_file_pos == *another_flat_file_pos) != (*flat_file_pos != *another_flat_file_pos));
}
(void)flat_file_pos->ToString();
- flat_file_pos->SetNull();
- assert(flat_file_pos->IsNull());
}