MCPcopy
hub / github.com/pocketbase/pocketbase / createTestBackups

Function createTestBackups

apis/backup_test.go:834–854  ·  view source on GitHub ↗

-------------------------------------------------------------------

(app core.App)

Source from the content-addressed store, hash-verified

832// -------------------------------------------------------------------
833
834func createTestBackups(app core.App) error {
835 ctx := context.Background()
836
837 if err := app.CreateBackup(ctx, "test1.zip"); err != nil {
838 return err
839 }
840
841 if err := app.CreateBackup(ctx, "test2.zip"); err != nil {
842 return err
843 }
844
845 if err := app.CreateBackup(ctx, "test3.zip"); err != nil {
846 return err
847 }
848
849 if err := app.CreateBackup(ctx, "@test4.zip"); err != nil {
850 return err
851 }
852
853 return nil
854}
855
856func getBackupFiles(app core.App) ([]*blob.ListObject, error) {
857 fsys, err := app.NewBackupsFilesystem()

Callers 4

TestBackupsListFunction · 0.85
TestBackupsDownloadFunction · 0.85
TestBackupsDeleteFunction · 0.85
TestBackupsRestoreFunction · 0.85

Calls 1

CreateBackupMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…