(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestUnMarshalToJSONV1(t *testing.T) { |
| 30 | file, _ := os.Open("trace.json") |
| 31 | defer file.Close() |
| 32 | trace := &Trace{} |
| 33 | content, _ := io.ReadAll(file) |
| 34 | err := UnmarshalFromJSONV1(content, trace) |
| 35 | |
| 36 | assert.NoError(t, err) |
| 37 | assert.Equal(t, "my.library", trace.ResourceSpans[0].ScopeSpans[0].Scope.Name) |
| 38 | } |
nothing calls this directly
no test coverage detected