gitlab.com/evatix-go/core@v1.3.55/coreinterface/all-has-checkers.go (about)

     1  package coreinterface
     2  
     3  type HasAnyIssueChecker interface {
     4  	HasAnyIssues() bool
     5  }
     6  
     7  type HasAnyItemChecker interface {
     8  	HasAnyItem() bool
     9  }
    10  
    11  type HasErrorChecker interface {
    12  	HasError() bool
    13  }
    14  
    15  type HasIndexChecker interface {
    16  	HasIndex(index int) bool
    17  }
    18  
    19  type HasIssueChecker interface {
    20  	HasAnyItemChecker
    21  	HasIssues() bool
    22  	IsEmptyOrIssues() bool
    23  	// HasValidItems Has items and there is no issues
    24  	HasValidItems() bool
    25  }
    26  
    27  type HasIssuesOrEmptyChecker interface {
    28  	HasIssuesOrEmpty() bool
    29  }
    30  
    31  type HasItemAtChecker interface {
    32  	HasItemAt(index int) bool
    33  }
    34  
    35  type HasSafeItemsChecker interface {
    36  	// HasSafeItems
    37  	//
    38  	// returns true if has valid item or items and no error
    39  	HasSafeItems() bool
    40  }
    41  
    42  type HasFlagByNameChecker interface {
    43  	HasFlagByName(flagName string) bool
    44  }
    45  
    46  type HasKeyChecker interface {
    47  	HasKey(key string) bool
    48  }
    49  
    50  type HasAllKeysChecker interface {
    51  	HasAllKeys(keys ...string) bool
    52  }
    53  
    54  type HasAnyKeysChecker interface {
    55  	HasAnyKeys(keys ...string) bool
    56  }