MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / IsEmpty

Method IsEmpty

internal/controller/runtime/patch.go:110–110  ·  view source on GitHub ↗

IsEmpty returns true when patch has no operations.

()

Source from the content-addressed store, hash-verified

108
109// IsEmpty returns true when patch has no operations.
110func (patch *JSON6902) IsEmpty() bool { return len(*patch) == 0 }
111
112// Type returns [types.JSONPatchType].
113func (patch *JSON6902) Type() types.PatchType { return types.JSONPatchType }

Callers 3

TestJSON6902Function · 0.45
TestMerge7386Function · 0.45
ApplyFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestJSON6902Function · 0.36
TestMerge7386Function · 0.36