Lines Matching refs:sut
33 PersistentJsonStorage sut{directory}; member in TestPersistentJsonStorage
47 sut.store(fileName, data); in TEST_F()
49 ASSERT_THAT(sut.load(fileName), Eq(data)); in TEST_F()
54 EXPECT_THAT(sut.list(), SizeIs(0u)); in TEST_F()
59 sut.store(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F()
61 sut.store(FilePath("report/domain-1/name-2/conf-1.json"), in TEST_F()
63 sut.store(FilePath("report/domain-1/name-2/conf-2.json"), in TEST_F()
65 sut.store(FilePath("report/domain-2/name-1/conf-1.json"), in TEST_F()
69 sut.list(), in TEST_F()
78 sut.store(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F()
80 sut.store(FilePath("report/domain-1/name-2/conf-1.json"), in TEST_F()
82 sut.store(FilePath("report/domain-1/name-2/conf-2.json"), in TEST_F()
84 sut.store(FilePath("report/domain-2/name-1/conf-1.json"), in TEST_F()
86 sut.remove(FilePath("report/domain-1/name-1/conf-1.json")); in TEST_F()
87 sut.remove(FilePath("report/domain-1/name-2/conf-2.json")); in TEST_F()
90 sut.list(), in TEST_F()
101 sut.store(fileName, data); in TEST_F()
103 ASSERT_THAT(sut.remove(fileName), Eq(true)); in TEST_F()
104 ASSERT_THAT(sut.load(fileName), Eq(std::nullopt)); in TEST_F()
109 ASSERT_THAT(sut.remove(fileName), Eq(false)); in TEST_F()
114 ASSERT_THAT(sut.load(fileName), Eq(std::nullopt)); in TEST_F()
190 ASSERT_THAT(TestPersistentJsonStorage::sut.list(), UnorderedElementsAre()); in TYPED_TEST()
195 ASSERT_THROW(TestPersistentJsonStorage::sut.store(TestFixture::linkPath, in TYPED_TEST()
199 ASSERT_THAT(TestPersistentJsonStorage::sut.list(), UnorderedElementsAre()); in TYPED_TEST()
205 ASSERT_THAT(TestPersistentJsonStorage::sut.load(TestFixture::linkPath), in TYPED_TEST()
212 EXPECT_THAT(TestPersistentJsonStorage::sut.remove(TestFixture::linkPath), in TYPED_TEST()