MCPcopy
hub / github.com/basecamp/once / TestBackupToFile_RelativePath

Function TestBackupToFile_RelativePath

internal/docker/application_backup_test.go:25–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestBackupToFile_RelativePath(t *testing.T) {
26 app := &Application{Settings: ApplicationSettings{Name: "chat"}}
27 err := app.BackupToFile(context.Background(), "relative/path", "backup.tar.gz")
28 require.ErrorIs(t, err, ErrBackupPathRelative)
29}
30
31func TestBackup_EmptyPath(t *testing.T) {
32 app := &Application{Settings: ApplicationSettings{Name: "chat"}}

Callers

nothing calls this directly

Calls 1

BackupToFileMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…