(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestRegularFile(t *testing.T) { |
| 56 | fileName := "schema_test.go" |
| 57 | fi, err := os.Lstat(fileName) |
| 58 | if err != nil { |
| 59 | t.Fatalf("Unexpected error: %v", err) |
| 60 | } |
| 61 | m := NewCommonFileMap("schema_test.go", fi) |
| 62 | json, err := m.JSON() |
| 63 | if err != nil { |
| 64 | t.Fatalf("Unexpected error: %v", err) |
| 65 | } |
| 66 | t.Logf("Got json for regular file: [%s]\n", json) |
| 67 | } |
| 68 | |
| 69 | func TestSymlink(t *testing.T) { |
| 70 | td := t.TempDir() |
nothing calls this directly
no test coverage detected