-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilesystem_test.go
56 lines (48 loc) · 980 Bytes
/
filesystem_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package filesystem
import "testing"
func TestGetFile(t *testing.T) {
t.Skip()
}
func TestRegisterPakfile(t *testing.T) {
t.Skip()
}
func TestRegisterVpk(t *testing.T) {
t.Skip()
}
func TestUnregisterVpk(t *testing.T) {
t.Skip()
}
func TestRegisterLocalDirectory(t *testing.T) {
fs := NewFileSystem()
dir := "foo/bar/baz"
fs.RegisterLocalDirectory(dir)
found := false
for _, path := range fs.localDirectories {
if path == dir {
found = true
break
}
}
if found == false {
t.Error("local filepath was not found in registered paths")
}
}
func TestUnregisterLocalDirectory(t *testing.T) {
fs := NewFileSystem()
dir := "foo/bar/baz"
fs.RegisterLocalDirectory(dir)
fs.UnregisterLocalDirectory(dir)
found := false
for _, path := range fs.localDirectories {
if path == dir {
found = true
break
}
}
if found == true {
t.Error("local filepath was not found in registered paths")
}
}
func TestUnregisterPakfile(t *testing.T) {
t.Skip()
}