(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestRustFiles(t *testing.T) { |
| 36 | var comments Comments |
| 37 | err := SearchDir("testdata/rust", func(comment *Comment) { |
| 38 | comments = append(comments, comment) |
| 39 | }) |
| 40 | if err != nil { |
| 41 | t.Fatal(err) |
| 42 | } |
| 43 | |
| 44 | // TODO: break the different comment types out into separate files? |
| 45 | // once the issue with lege is worked out for handling the different comment types |
| 46 | if len(comments) != 21 { |
| 47 | t.Fail() |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func TestPHPFiles(t *testing.T) { |
| 52 | var comments Comments |
nothing calls this directly
no test coverage detected