(t *testing.T)
| 10 | } |
| 11 | |
| 12 | func TestSearchPath(t *testing.T) { |
| 13 | paths := []pathPair{ |
| 14 | pathPair{ConfigLevelSystem, "/tmp/system"}, |
| 15 | pathPair{ConfigLevelGlobal, "/tmp/global"}, |
| 16 | pathPair{ConfigLevelXDG, "/tmp/xdg"}, |
| 17 | } |
| 18 | |
| 19 | for _, pair := range paths { |
| 20 | err := SetSearchPath(pair.Level, pair.Path) |
| 21 | checkFatal(t, err) |
| 22 | |
| 23 | actual, err := SearchPath(pair.Level) |
| 24 | checkFatal(t, err) |
| 25 | |
| 26 | if pair.Path != actual { |
| 27 | t.Fatal("Search paths don't match") |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func TestMmapSizes(t *testing.T) { |
| 33 | size := 42 * 1024 |
nothing calls this directly
no test coverage detected
searching dependent graphs…