MCPcopy Create free account
hub / github.com/cli/cli / Empty

Method Empty

pkg/iostreams/untrusted.go:55–57  ·  view source on GitHub ↗

Empty reports whether the content is empty, for callers that branch on presence without needing the bytes.

()

Source from the content-addressed store, hash-verified

53// Empty reports whether the content is empty, for callers that branch on
54// presence without needing the bytes.
55func (u Untrusted) Empty() bool {
56 return u.raw == ""
57}
58
59// UnmarshalJSON lets a struct field typed as Untrusted be populated directly by
60// json.Unmarshal, so provenance is preserved across a JSON decode. This is what

Callers 15

TestRecordTelemetryFunction · 0.80
TestFetchRefSHAFunction · 0.80
hasNoTokenFunction · 0.80
TestFollowFunction · 0.80
renderLogEntryFunction · 0.80
TestScanInstalledSkillsFunction · 0.80
TestNewCmdInstallFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestRecordTelemetryFunction · 0.64
TestFetchRefSHAFunction · 0.64
hasNoTokenFunction · 0.64
TestFollowFunction · 0.64
TestScanInstalledSkillsFunction · 0.64
TestNewCmdInstallFunction · 0.64
Test_printReviewHintFunction · 0.64