(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestReadFileResource(t *testing.T) { |
| 98 | if runtime.GOOS == "windows" { |
| 99 | t.Skip("TODO: fix for Windows") |
| 100 | } |
| 101 | abs, err := filepath.Abs("testdata") |
| 102 | if err != nil { |
| 103 | t.Fatal(err) |
| 104 | } |
| 105 | dirFilepath := filepath.Join(abs, "files") |
| 106 | got, err := readFileResource("file:///info.txt", dirFilepath, nil) |
| 107 | if err != nil { |
| 108 | t.Fatal(err) |
| 109 | } |
| 110 | want := "Contents\n" |
| 111 | if g := string(got); g != want { |
| 112 | t.Errorf("got %q, want %q", g, want) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | func TestTemplateMatch(t *testing.T) { |
| 117 | uri := "file:///path/to/file" |
nothing calls this directly
no test coverage detected
searching dependent graphs…