Lines Matching full:store
29 #include "store/read_backend.hpp"
33 #include "store/exceptions.hpp"
34 #include "store/metadata.hpp"
35 #include "store/write_backend.hpp"
58 sqlite::database db = store::detail::open_and_setup( in ATF_TEST_CASE_BODY()
71 ATF_REQUIRE_THROW_RE(store::error, "Cannot open 'missing.db': ", in ATF_TEST_CASE_BODY()
72 store::detail::open_and_setup(fs::path("missing.db"), in ATF_TEST_CASE_BODY()
82 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
89 store::detail::initialize(db); in ATF_TEST_CASE_BODY()
91 store::read_backend backend = store::read_backend::open_ro( in ATF_TEST_CASE_BODY()
100 ATF_REQUIRE_THROW_RE(store::error, "Cannot open 'missing.db': ", in ATF_TEST_CASE_BODY()
101 store::read_backend::open_ro(fs::path("missing.db"))); in ATF_TEST_CASE_BODY()
110 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
117 store::detail::initialize(db); in ATF_TEST_CASE_BODY()
120 ATF_REQUIRE_THROW_RE(store::integrity_error, "metadata.*empty", in ATF_TEST_CASE_BODY()
121 store::read_backend::open_ro(fs::path("test.db"))); in ATF_TEST_CASE_BODY()
129 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
133 store::write_backend::open_rw(fs::path("test.db")); // Create database. in ATF_TEST_CASE_BODY()
134 store::read_backend backend = store::read_backend::open_ro( in ATF_TEST_CASE_BODY()