(obj *tempopb.Trace)
| 294 | } |
| 295 | |
| 296 | func findFirstAttribute(obj *tempopb.Trace) (string, string) { |
| 297 | for _, b := range obj.ResourceSpans { |
| 298 | for _, s := range b.ScopeSpans { |
| 299 | for _, span := range s.Spans { |
| 300 | for _, a := range span.Attributes { |
| 301 | return a.Key, a.Value.GetStringValue() |
| 302 | } |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | return "", "" |
| 308 | } |
| 309 | |
| 310 | func TestInvalidFilesAndFoldersAreHandled(t *testing.T) { |
| 311 | tempDir := t.TempDir() |
no test coverage detected