(ctx context.Context, api api.API)
| 328 | } |
| 329 | |
| 330 | func (b *builder) addAPI(ctx context.Context, api api.API) { |
| 331 | if api != nil { |
| 332 | apiID := api.ID() |
| 333 | if _, found := b.seenAPIs[apiID]; !found { |
| 334 | b.seenAPIs[apiID] = struct{}{} |
| 335 | b.apis = append(b.apis, api) |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | func (b *builder) addObservation(ctx context.Context, o *api.CmdObservation) { |
| 341 | interval.Merge(&b.observed, o.Range.Span(), true) |
no test coverage detected