MCPcopy Create free account
hub / github.com/google/gapid / addAPI

Method addAPI

gapis/capture/graphics.go:330–338  ·  view source on GitHub ↗
(ctx context.Context, api api.API)

Source from the content-addressed store, hash-verified

328}
329
330func (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
340func (b *builder) addObservation(ctx context.Context, o *api.CmdObservation) {
341 interval.Merge(&b.observed, o.Range.Span(), true)

Callers 2

addCmdMethod · 0.95
addInitialStateMethod · 0.95

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected