(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func 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 | |
| 31 | func TestBackup_EmptyPath(t *testing.T) { |
| 32 | app := &Application{Settings: ApplicationSettings{Name: "chat"}} |
nothing calls this directly
no test coverage detected
searching dependent graphs…