(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func TestMarshalJSON_withNilContentAndSHA(t *testing.T) { |
| 19 | t.Parallel() |
| 20 | te := TreeEntry{ |
| 21 | Path: Ptr("path"), |
| 22 | Mode: Ptr("mode"), |
| 23 | Type: Ptr("type"), |
| 24 | Size: Ptr(1), |
| 25 | URL: Ptr("url"), |
| 26 | } |
| 27 | |
| 28 | want := `{"sha":null,"path":"path","mode":"mode","type":"type"}` |
| 29 | testJSONMarshalOnly(t, te, want) |
| 30 | testJSONMarshalOnly(t, &te, want) |
| 31 | } |
| 32 | |
| 33 | func TestGitService_GetTree(t *testing.T) { |
| 34 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…