| 1 | //go:build !wasm |
| 2 | |
| 3 | package osfs |
| 4 | |
| 5 | import ( |
| 6 | "io/fs" |
| 7 | "reflect" |
| 8 | "testing" |
| 9 | ) |
| 10 | |
| 11 | var _ fs.File = &file{} |
| 12 | |
| 13 | func TestDefault(t *testing.T) { |
| 14 | want := &BoundOS{} |
| 15 | got := Default |
| 16 | |
| 17 | if reflect.TypeOf(got) != reflect.TypeFor[*BoundOS]() { |
| 18 | t.Errorf("wanted Default to be %T got %T", want, got) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | var ( |
| 23 | // API call assertions |
| 24 | _ = New("/") |
| 25 | _ = New("/", WithBoundOS()) |
| 26 | ) |