MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / TestDB_Backup

Function TestDB_Backup

db_test.go:846–854  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

844}
845
846func TestDB_Backup(t *testing.T) {
847 if runtime.GOOS == "windows" {
848 t.Skip()
849 }
850 runNutsDBTest(t, nil, func(t *testing.T, db *DB) {
851 backUpDir := filepath.Join(t.TempDir(), "nutsdb-backup")
852 require.NoError(t, db.Backup(backUpDir))
853 })
854}
855
856func TestDB_BackupTarGZ(t *testing.T) {
857 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 3

runNutsDBTestFunction · 0.85
BackupMethod · 0.80
SkipMethod · 0.65

Tested by

no test coverage detected