Debian Codegraph @

osfs/os_test.go

raw symbols SCIP
1 //go:build !wasm
2 // +build !wasm
3
4 package osfs
5
6 import (
7 "reflect"
8 "testing"
9 )
10
11 func TestDefault(t *testing.T) {
12 want := &ChrootOS{}
13 got := Default
14
15 if reflect.TypeOf(got) != reflect.TypeOf(want) {
16 t.Errorf("wanted Default to be %T got %T", want, got)
17 }
18 }
19
20 func TestNewAPI(t *testing.T) {
21 _ = New("/")
22 _ = New("/", WithBoundOS())
23 _ = New("/", WithChrootOS())
24 }