MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / IsZero

Method IsZero

internal/ui/models/state.go:32–37  ·  view source on GitHub ↗

IsZero returns true when no advanced guest filter criteria are set.

()

Source from the content-addressed store, hash-verified

30
31// IsZero returns true when no advanced guest filter criteria are set.
32func (f VMFilterOptions) IsZero() bool {
33 return strings.TrimSpace(f.Status) == "" &&
34 strings.TrimSpace(f.Type) == "" &&
35 strings.TrimSpace(f.Node) == "" &&
36 strings.TrimSpace(f.TagContains) == ""
37}
38
39// HasActiveVMFilter returns true when either free-text search or advanced VM filters are active.
40func (s *SearchState) HasActiveVMFilter() bool {

Callers 6

TestGetBuildDateFunction · 0.80
RefreshMethod · 0.80
DisplaySnapshotsMethod · 0.80
showStorageContentMethod · 0.80
HasActiveVMFilterMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestGetBuildDateFunction · 0.64