MCPcopy
hub / github.com/docker/docker-agent / IsZero

Method IsZero

pkg/modelsdev/id.go:67–69  ·  view source on GitHub ↗

IsZero reports whether the ID has both components empty.

()

Source from the content-addressed store, hash-verified

65
66// IsZero reports whether the ID has both components empty.
67func (id ID) IsZero() bool {
68 return id.Provider == "" && id.Model == ""
69}
70
71// IsValid reports whether both components of the ID are populated.
72func (id ID) IsValid() bool {

Callers 15

StringMethod · 0.95
TestNewIDFunction · 0.95
TestIDZeroFunction · 0.95
TestTracker_NewIsStoppedFunction · 0.45
refreshStoredTokenMethod · 0.45
IsExpiredMethod · 0.45
RenderTranscriptFunction · 0.45
loadMethod · 0.45
MarkChunkMethod · 0.45
EndMethod · 0.45
detectClickTypeMethod · 0.45

Calls

no outgoing calls

Tested by 7

TestNewIDFunction · 0.76
TestIDZeroFunction · 0.76
TestTracker_NewIsStoppedFunction · 0.36
TestSnapshotDateParsesFunction · 0.36
TestSnapshotDateIsFreshFunction · 0.36
TestParseIDOrZeroFunction · 0.36