(t *testing.T)
| 138 | } |
| 139 | |
| 140 | func TestWithGoroutineLabel(t *testing.T) { |
| 141 | ctx := context.Background() |
| 142 | ctx = WithGoroutineLabel(ctx, "my_routine_123") |
| 143 | pprof.SetGoroutineLabels(ctx) |
| 144 | m := Values(ctx, RoutineLabelKey) |
| 145 | assert.Equal(t, 1, len(m)) |
| 146 | assert.Equal(t, "my_routine_123", m[RoutineLabelKey.String()]) |
| 147 | } |
nothing calls this directly
no test coverage detected