• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 4879733712

04 May 2023 06:26AM UTC coverage: 60.825% (+0.2%) from 60.65%
4879733712

Pull #1057

github

GitHub
Merge branch 'main' into fix-setup
Pull Request #1057: fix: skip migrations when backup volume exists

15 of 15 new or added lines in 2 files covered. (100.0%)

4349 of 7150 relevant lines covered (60.83%)

1338.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/internal/testing/fstest/open.go
1
package fstest
2

3
import (
4
        "io/fs"
5
        "os"
6
        "strings"
7

8
        "github.com/spf13/afero"
9
)
10

11
type OpenErrorFs struct {
12
        afero.MemMapFs
13
        DenyPath string
14
}
15

16
func (m *OpenErrorFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) {
2✔
17
        if strings.HasPrefix(name, m.DenyPath) {
4✔
18
                return nil, fs.ErrPermission
2✔
19
        }
2✔
20
        return m.MemMapFs.OpenFile(name, flag, perm)
×
21
}
22

23
func (m *OpenErrorFs) Open(name string) (afero.File, error) {
4✔
24
        if strings.HasPrefix(name, m.DenyPath) {
7✔
25
                return nil, fs.ErrPermission
3✔
26
        }
3✔
27
        return m.MemMapFs.Open(name)
1✔
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc