MCPcopy Index your code
hub / github.com/docker/docker-agent / IsValid

Method IsValid

pkg/modelsdev/id.go:72–74  ·  view source on GitHub ↗

IsValid reports whether both components of the ID are populated.

()

Source from the content-addressed store, hash-verified

70
71// IsValid reports whether both components of the ID are populated.
72func (id ID) IsValid() bool {
73 return id.Provider != "" && id.Model != ""
74}

Callers 10

TestNewIDFunction · 0.95
TestIDZeroFunction · 0.95
HandleRunMethod · 0.45
GetModelMethod · 0.45
TestIDIsValidFunction · 0.45
clearTimestampsFunction · 0.45
LookupFamilyFunction · 0.45

Calls

no outgoing calls

Tested by 6

TestNewIDFunction · 0.76
TestIDZeroFunction · 0.76
TestIDIsValidFunction · 0.36
clearTimestampsFunction · 0.36