Lines Matching full:store

29 #include "store/write_backend.hpp"
33 #include "store/exceptions.hpp"
34 #include "store/metadata.hpp"
53 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
59 const store::metadata md = store::detail::initialize(db); in ATF_TEST_CASE_BODY()
64 ATF_REQUIRE_EQ(store::detail::current_schema_version, md.schema_version()); in ATF_TEST_CASE_BODY()
82 store::detail::current_schema_version = 712; in ATF_TEST_CASE_BODY()
85 ATF_REQUIRE_THROW_RE(store::error, in ATF_TEST_CASE_BODY()
87 store::detail::initialize(db)); in ATF_TEST_CASE_BODY()
95 store::detail::current_schema_version = 712; in ATF_TEST_CASE_BODY()
100 ATF_REQUIRE_THROW_RE(store::error, "Failed to initialize.*:.*foo_bar_baz", in ATF_TEST_CASE_BODY()
101 store::detail::initialize(db)); in ATF_TEST_CASE_BODY()
110 store::detail::schema_file()); in ATF_TEST_CASE_BODY()
118 store::detail::current_schema_version = 123; in ATF_TEST_CASE_BODY()
120 store::detail::schema_file()); in ATF_TEST_CASE_BODY()
128 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
136 store::write_backend backend = store::write_backend::open_rw( in ATF_TEST_CASE_BODY()
146 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
153 store::detail::initialize(db); in ATF_TEST_CASE_BODY()
155 ATF_REQUIRE_THROW_RE(store::error, "test.db already exists", in ATF_TEST_CASE_BODY()
156 store::write_backend::open_rw(fs::path("test.db"))); in ATF_TEST_CASE_BODY()
164 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
168 store::write_backend backend = store::write_backend::open_rw( in ATF_TEST_CASE_BODY()
178 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD()
182 store::write_backend backend = store::write_backend::open_rw( in ATF_TEST_CASE_BODY()