repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go | vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go | // untested sections: 3
package matchers
import (
"fmt"
"time"
"github.com/onsi/gomega/format"
)
type BeTemporallyMatcher struct {
Comparator string
CompareTo time.Time
Threshold []time.Duration
}
func (matcher *BeTemporallyMatcher) FailureMessage(actual interface{}) (message string) {
return format.Messa... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/match_xml_matcher.go | vendor/github.com/onsi/gomega/matchers/match_xml_matcher.go | package matchers
import (
"bytes"
"encoding/xml"
"errors"
"fmt"
"io"
"reflect"
"sort"
"strings"
"github.com/onsi/gomega/format"
"golang.org/x/net/html/charset"
)
type MatchXMLMatcher struct {
XMLToMatch interface{}
}
func (matcher *MatchXMLMatcher) Match(actual interface{}) (success bool, err error) {
a... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go | vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go | // untested sections: 3
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type BeSentMatcher struct {
Arg interface{}
channelClosed bool
}
func (matcher *BeSentMatcher) Match(actual interface{}) (success bool, err error) {
if !isChan(actual) {
return false, fmt.Errorf("B... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/with_transform.go | vendor/github.com/onsi/gomega/matchers/with_transform.go | package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/types"
)
type WithTransformMatcher struct {
// input
Transform interface{} // must be a function of one parameter that returns one value and an optional error
Matcher types.GomegaMatcher
// cached value
transformArgType reflect.Type
// st... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go | vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"strings"
"github.com/onsi/gomega/format"
)
type ContainSubstringMatcher struct {
Substr string
Args []interface{}
}
func (matcher *ContainSubstringMatcher) Match(actual interface{}) (success bool, err error) {
actualString, ok := toString(actual)
if... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/type_support.go | vendor/github.com/onsi/gomega/matchers/type_support.go | /*
Gomega matchers
This package implements the Gomega matchers and does not typically need to be imported.
See the docs for Gomega for documentation on the matchers
http://onsi.github.io/gomega/
*/
// untested sections: 11
package matchers
import (
"encoding/json"
"fmt"
"reflect"
)
type omegaMatcher interface ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/succeed_matcher.go | vendor/github.com/onsi/gomega/matchers/succeed_matcher.go | package matchers
import (
"errors"
"fmt"
"github.com/onsi/gomega/format"
)
type formattedGomegaError interface {
FormattedGomegaError() string
}
type SucceedMatcher struct {
}
func (matcher *SucceedMatcher) Match(actual interface{}) (success bool, err error) {
// is purely nil?
if actual == nil {
return tr... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go | vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go | package matchers
import (
"reflect"
"github.com/onsi/gomega/format"
)
type BeZeroMatcher struct {
}
func (matcher *BeZeroMatcher) Match(actual interface{}) (success bool, err error) {
if actual == nil {
return true, nil
}
zeroValue := reflect.Zero(reflect.TypeOf(actual)).Interface()
return reflect.DeepEqua... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/consist_of.go | vendor/github.com/onsi/gomega/matchers/consist_of.go | // untested sections: 3
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/matchers/support/goraph/bipartitegraph"
)
type ConsistOfMatcher struct {
Elements []interface{}
missingElements []interface{}
extraElements []interface{}
}
func (matcher *Consis... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/match_error_matcher.go | vendor/github.com/onsi/gomega/matchers/match_error_matcher.go | package matchers
import (
"errors"
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type MatchErrorMatcher struct {
Expected any
FuncErrDescription []any
isFunc bool
}
func (matcher *MatchErrorMatcher) Match(actual any) (success bool, err error) {
matcher.isFunc = false
if isNil(act... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_element_of_matcher.go | vendor/github.com/onsi/gomega/matchers/be_element_of_matcher.go | // untested sections: 1
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type BeElementOfMatcher struct {
Elements []interface{}
}
func (matcher *BeElementOfMatcher) Match(actual interface{}) (success bool, err error) {
if reflect.TypeOf(actual) == nil {
return false, fmt.Errorf("... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go | vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go | // untested sections: 2
package matchers
import (
"errors"
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type ContainElementMatcher struct {
Element interface{}
Result []interface{}
}
func (matcher *ContainElementMatcher) Match(actual interface{}) (success bool, err error) {
if !isArrayOrSlice(actual) ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go | vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type HaveCapMatcher struct {
Count int
}
func (matcher *HaveCapMatcher) Match(actual interface{}) (success bool, err error) {
length, ok := capOf(actual)
if !ok {
return false, fmt.Errorf("HaveCap matcher expects a arr... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_prefix_matcher.go | vendor/github.com/onsi/gomega/matchers/have_prefix_matcher.go | package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type HavePrefixMatcher struct {
Prefix string
Args []interface{}
}
func (matcher *HavePrefixMatcher) Match(actual interface{}) (success bool, err error) {
actualString, ok := toString(actual)
if !ok {
return false, fmt.Errorf("HavePrefix ma... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go | vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go | // untested sections: 4
package matchers
import (
"fmt"
"math"
"github.com/onsi/gomega/format"
)
type BeNumericallyMatcher struct {
Comparator string
CompareTo []interface{}
}
func (matcher *BeNumericallyMatcher) FailureMessage(actual interface{}) (message string) {
return matcher.FormatFailureMessage(actua... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/not.go | vendor/github.com/onsi/gomega/matchers/not.go | package matchers
import (
"github.com/onsi/gomega/types"
)
type NotMatcher struct {
Matcher types.GomegaMatcher
}
func (m *NotMatcher) Match(actual interface{}) (bool, error) {
success, err := m.Matcher.Match(actual)
if err != nil {
return false, err
}
return !success, nil
}
func (m *NotMatcher) FailureMess... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/semi_structured_data_support.go | vendor/github.com/onsi/gomega/matchers/semi_structured_data_support.go | // untested sections: 5
package matchers
import (
"fmt"
"reflect"
"strings"
)
func formattedMessage(comparisonMessage string, failurePath []interface{}) string {
var diffMessage string
if len(failurePath) == 0 {
diffMessage = ""
} else {
diffMessage = fmt.Sprintf("\n\nfirst mismatched key: %s", formattedFa... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_true_matcher.go | vendor/github.com/onsi/gomega/matchers/be_true_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type BeTrueMatcher struct {
Reason string
}
func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error) {
if !isBool(actual) {
return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Objec... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_a_directory.go | vendor/github.com/onsi/gomega/matchers/be_a_directory.go | // untested sections: 5
package matchers
import (
"fmt"
"os"
"github.com/onsi/gomega/format"
)
type notADirectoryError struct {
os.FileInfo
}
func (t notADirectoryError) Error() string {
fileInfo := os.FileInfo(t)
switch {
case fileInfo.Mode().IsRegular():
return "file is a regular file"
default:
retur... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/contain_elements_matcher.go | vendor/github.com/onsi/gomega/matchers/contain_elements_matcher.go | package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/matchers/support/goraph/bipartitegraph"
)
type ContainElementsMatcher struct {
Elements []interface{}
missingElements []interface{}
}
func (matcher *ContainElementsMatcher) Match(actual interface{}) (success bool, er... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go | vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go | package matchers
import (
"fmt"
"strings"
"github.com/onsi/gomega/format"
"gopkg.in/yaml.v3"
)
type MatchYAMLMatcher struct {
YAMLToMatch interface{}
firstFailurePath []interface{}
}
func (matcher *MatchYAMLMatcher) Match(actual interface{}) (success bool, err error) {
actualString, expectedString, err ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_exact_elements.go | vendor/github.com/onsi/gomega/matchers/have_exact_elements.go | package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type mismatchFailure struct {
failure string
index int
}
type HaveExactElementsMatcher struct {
Elements []interface{}
mismatchFailures []mismatchFailure
missingIndex int
extraIndex int
}
func (matcher *HaveExactElementsM... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_existing_field_matcher.go | vendor/github.com/onsi/gomega/matchers/have_existing_field_matcher.go | package matchers
import (
"errors"
"fmt"
"github.com/onsi/gomega/format"
)
type HaveExistingFieldMatcher struct {
Field string
}
func (matcher *HaveExistingFieldMatcher) Match(actual interface{}) (success bool, err error) {
// we don't care about the field's actual value, just about any error in
// trying to ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go | vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type BeEquivalentToMatcher struct {
Expected interface{}
}
func (matcher *BeEquivalentToMatcher) Match(actual interface{}) (success bool, err error) {
if actual == nil && matcher.Expected == nil {
return fals... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/panic_matcher.go | vendor/github.com/onsi/gomega/matchers/panic_matcher.go | package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type PanicMatcher struct {
Expected interface{}
object interface{}
}
func (matcher *PanicMatcher) Match(actual interface{}) (success bool, err error) {
if actual == nil {
return false, fmt.Errorf("PanicMatcher expects a non-nil ac... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_identical_to.go | vendor/github.com/onsi/gomega/matchers/be_identical_to.go | // untested sections: 2
package matchers
import (
"fmt"
"runtime"
"github.com/onsi/gomega/format"
)
type BeIdenticalToMatcher struct {
Expected interface{}
}
func (matcher *BeIdenticalToMatcher) Match(actual interface{}) (success bool, matchErr error) {
if actual == nil && matcher.Expected == nil {
return f... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_suffix_matcher.go | vendor/github.com/onsi/gomega/matchers/have_suffix_matcher.go | package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type HaveSuffixMatcher struct {
Suffix string
Args []interface{}
}
func (matcher *HaveSuffixMatcher) Match(actual interface{}) (success bool, err error) {
actualString, ok := toString(actual)
if !ok {
return false, fmt.Errorf("HaveSuffix ma... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/match_json_matcher.go | vendor/github.com/onsi/gomega/matchers/match_json_matcher.go | package matchers
import (
"bytes"
"encoding/json"
"fmt"
"github.com/onsi/gomega/format"
)
type MatchJSONMatcher struct {
JSONToMatch interface{}
firstFailurePath []interface{}
}
func (matcher *MatchJSONMatcher) Match(actual interface{}) (success bool, err error) {
actualString, expectedString, err := ma... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go | vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go | // untested sections: 5
package matchers
import (
"fmt"
"os"
"github.com/onsi/gomega/format"
)
type notARegularFileError struct {
os.FileInfo
}
func (t notARegularFileError) Error() string {
fileInfo := os.FileInfo(t)
switch {
case fileInfo.IsDir():
return "file is a directory"
default:
return fmt.Spri... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/satisfy_matcher.go | vendor/github.com/onsi/gomega/matchers/satisfy_matcher.go | package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type SatisfyMatcher struct {
Predicate interface{}
// cached type
predicateArgType reflect.Type
}
func NewSatisfyMatcher(predicate interface{}) *SatisfyMatcher {
if predicate == nil {
panic("predicate cannot be nil")
}
predicate... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_http_header_with_value_matcher.go | vendor/github.com/onsi/gomega/matchers/have_http_header_with_value_matcher.go | package matchers
import (
"fmt"
"net/http"
"net/http/httptest"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/types"
)
type HaveHTTPHeaderWithValueMatcher struct {
Header string
Value interface{}
}
func (matcher *HaveHTTPHeaderWithValueMatcher) Match(actual interface{}) (success bool, err error) {
... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/attributes_slice.go | vendor/github.com/onsi/gomega/matchers/attributes_slice.go | package matchers
import (
"encoding/xml"
"strings"
)
type attributesSlice []xml.Attr
func (attrs attributesSlice) Len() int { return len(attrs) }
func (attrs attributesSlice) Less(i, j int) bool {
return strings.Compare(attrs[i].Name.Local, attrs[j].Name.Local) == -1
}
func (attrs attributesSlice) Swap(i, j int) ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go | vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type HaveOccurredMatcher struct {
}
func (matcher *HaveOccurredMatcher) Match(actual interface{}) (success bool, err error) {
// is purely nil?
if actual == nil {
return false, nil
}
// must be an 'error' type
if !i... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go | vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go | // untested sections: 3
package matchers
import (
"fmt"
"os"
"github.com/onsi/gomega/format"
)
type BeAnExistingFileMatcher struct {
expected interface{}
}
func (matcher *BeAnExistingFileMatcher) Match(actual interface{}) (success bool, err error) {
actualFilename, ok := actual.(string)
if !ok {
return fal... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go | vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go | package matchers
import (
"fmt"
"net/http"
"net/http/httptest"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/internal/gutil"
"github.com/onsi/gomega/types"
)
type HaveHTTPBodyMatcher struct {
Expected interface{}
cachedResponse interface{}
cachedBody []byte
}
func (matcher *HaveHTTPBody... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/match_regexp_matcher.go | vendor/github.com/onsi/gomega/matchers/match_regexp_matcher.go | package matchers
import (
"fmt"
"regexp"
"github.com/onsi/gomega/format"
)
type MatchRegexpMatcher struct {
Regexp string
Args []interface{}
}
func (matcher *MatchRegexpMatcher) Match(actual interface{}) (success bool, err error) {
actualString, ok := toString(actual)
if !ok {
return false, fmt.Errorf("R... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go | vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type AssignableToTypeOfMatcher struct {
Expected interface{}
}
func (matcher *AssignableToTypeOfMatcher) Match(actual interface{}) (success bool, err error) {
if actual == nil && matcher.Expected == nil {
ret... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/equal_matcher.go | vendor/github.com/onsi/gomega/matchers/equal_matcher.go | package matchers
import (
"bytes"
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type EqualMatcher struct {
Expected interface{}
}
func (matcher *EqualMatcher) Match(actual interface{}) (success bool, err error) {
if actual == nil && matcher.Expected == nil {
return false, fmt.Errorf("Refusing to compare... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go | vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go | // untested sections:10
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type HaveKeyWithValueMatcher struct {
Key interface{}
Value interface{}
}
func (matcher *HaveKeyWithValueMatcher) Match(actual interface{}) (success bool, err error) {
if !isMap(actual) {
return false, fmt... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go | vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go | package matchers
import (
"bytes"
"fmt"
"github.com/google/go-cmp/cmp"
"github.com/onsi/gomega/format"
)
type BeComparableToMatcher struct {
Expected interface{}
Options cmp.Options
}
func (matcher *BeComparableToMatcher) Match(actual interface{}) (success bool, matchErr error) {
if actual == nil && matcher... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/receive_matcher.go | vendor/github.com/onsi/gomega/matchers/receive_matcher.go | // untested sections: 3
package matchers
import (
"errors"
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type ReceiveMatcher struct {
Args []interface{}
receivedValue reflect.Value
channelClosed bool
}
func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err error) {
if !isC... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_each_matcher.go | vendor/github.com/onsi/gomega/matchers/have_each_matcher.go | package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type HaveEachMatcher struct {
Element interface{}
}
func (matcher *HaveEachMatcher) Match(actual interface{}) (success bool, err error) {
if !isArrayOrSlice(actual) && !isMap(actual) {
return false, fmt.Errorf("HaveEach matcher expec... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_value.go | vendor/github.com/onsi/gomega/matchers/have_value.go | package matchers
import (
"errors"
"reflect"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/types"
)
const maxIndirections = 31
type HaveValueMatcher struct {
Matcher types.GomegaMatcher // the matcher to apply to the "resolved" actual value.
resolvedActual interface{} // the ("resolve... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/or.go | vendor/github.com/onsi/gomega/matchers/or.go | package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/types"
)
type OrMatcher struct {
Matchers []types.GomegaMatcher
// state
firstSuccessfulMatcher types.GomegaMatcher
}
func (m *OrMatcher) Match(actual interface{}) (success bool, err error) {
m.firstSuccessfulMatcher = n... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go | vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type BeClosedMatcher struct {
}
func (matcher *BeClosedMatcher) Match(actual interface{}) (success bool, err error) {
if !isChan(actual) {
return false, fmt.Errorf("BeClosed matcher expects a channel. Got:\n%... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_field.go | vendor/github.com/onsi/gomega/matchers/have_field.go | package matchers
import (
"fmt"
"reflect"
"strings"
"github.com/onsi/gomega/format"
)
// missingFieldError represents a missing field extraction error that
// HaveExistingFieldMatcher can ignore, as opposed to other, sever field
// extraction errors, such as nil pointers, et cetera.
type missingFieldError string... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go | vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go | // untested sections: 2
package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type BeEmptyMatcher struct {
}
func (matcher *BeEmptyMatcher) Match(actual interface{}) (success bool, err error) {
length, ok := lengthOf(actual)
if !ok {
return false, fmt.Errorf("BeEmpty matcher expects a string/arra... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_http_status_matcher.go | vendor/github.com/onsi/gomega/matchers/have_http_status_matcher.go | package matchers
import (
"fmt"
"net/http"
"net/http/httptest"
"reflect"
"strings"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/internal/gutil"
)
type HaveHTTPStatusMatcher struct {
Expected []interface{}
}
func (matcher *HaveHTTPStatusMatcher) Match(actual interface{}) (success bool, err error) ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_len_matcher.go | vendor/github.com/onsi/gomega/matchers/have_len_matcher.go | package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
)
type HaveLenMatcher struct {
Count int
}
func (matcher *HaveLenMatcher) Match(actual interface{}) (success bool, err error) {
length, ok := lengthOf(actual)
if !ok {
return false, fmt.Errorf("HaveLen matcher expects a string/array/map/channel/... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/be_key_of_matcher.go | vendor/github.com/onsi/gomega/matchers/be_key_of_matcher.go | package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type BeKeyOfMatcher struct {
Map interface{}
}
func (matcher *BeKeyOfMatcher) Match(actual interface{}) (success bool, err error) {
if !isMap(matcher.Map) {
return false, fmt.Errorf("BeKeyOf matcher needs expected to be a map type")
... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/have_key_matcher.go | vendor/github.com/onsi/gomega/matchers/have_key_matcher.go | // untested sections: 6
package matchers
import (
"fmt"
"reflect"
"github.com/onsi/gomega/format"
)
type HaveKeyMatcher struct {
Key interface{}
}
func (matcher *HaveKeyMatcher) Match(actual interface{}) (success bool, err error) {
if !isMap(actual) {
return false, fmt.Errorf("HaveKey matcher expects a map.... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go | vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go | package util
import "math"
func Odd(n int) bool {
return math.Mod(float64(n), 2.0) == 1.0
}
| go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go | vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go | package node
type Node struct {
ID int
Value interface{}
}
type NodeOrderedSet []Node
| go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraphmatching.go | vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraphmatching.go | package bipartitegraph
import (
. "github.com/onsi/gomega/matchers/support/goraph/edge"
. "github.com/onsi/gomega/matchers/support/goraph/node"
"github.com/onsi/gomega/matchers/support/goraph/util"
)
// LargestMatching implements the Hopcroft–Karp algorithm taking as input a bipartite graph
// and outputting a max... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraph.go | vendor/github.com/onsi/gomega/matchers/support/goraph/bipartitegraph/bipartitegraph.go | package bipartitegraph
import "fmt"
import . "github.com/onsi/gomega/matchers/support/goraph/node"
import . "github.com/onsi/gomega/matchers/support/goraph/edge"
type BipartiteGraph struct {
Left NodeOrderedSet
Right NodeOrderedSet
Edges EdgeSet
}
func NewBipartiteGraph(leftValues, rightValues []interface{}, ne... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/matchers/support/goraph/edge/edge.go | vendor/github.com/onsi/gomega/matchers/support/goraph/edge/edge.go | package edge
import . "github.com/onsi/gomega/matchers/support/goraph/node"
type Edge struct {
Node1 int
Node2 int
}
type EdgeSet []Edge
func (ec EdgeSet) Free(node Node) bool {
for _, e := range ec {
if e.Node1 == node.ID || e.Node2 == node.ID {
return false
}
}
return true
}
func (ec EdgeSet) Contai... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/gomega/format/format.go | vendor/github.com/onsi/gomega/format/format.go | /*
Gomega's format package pretty-prints objects. It explores input objects recursively and generates formatted, indented output with type information.
*/
// untested sections: 4
package format
import (
"context"
"fmt"
"reflect"
"strconv"
"strings"
"time"
)
// Use MaxDepth to set the maximum recursion depth ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo_t_dsl.go | vendor/github.com/onsi/ginkgo/v2/ginkgo_t_dsl.go | package ginkgo
import (
"testing"
"github.com/onsi/ginkgo/v2/internal/testingtproxy"
"github.com/onsi/ginkgo/v2/types"
)
/*
GinkgoT() implements an interface that allows third party libraries to integrate with and build on top of Ginkgo.
GinkgoT() is analogous to *testing.T and implements the majority of *testin... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/deprecated_dsl.go | vendor/github.com/onsi/ginkgo/v2/deprecated_dsl.go | package ginkgo
import (
"time"
"github.com/onsi/ginkgo/v2/internal"
"github.com/onsi/ginkgo/v2/internal/global"
"github.com/onsi/ginkgo/v2/reporters"
"github.com/onsi/ginkgo/v2/types"
)
/*
Deprecated: Done Channel for asynchronous testing
The Done channel pattern is no longer supported in Ginkgo 2.0.
See here ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/decorator_dsl.go | vendor/github.com/onsi/ginkgo/v2/decorator_dsl.go | package ginkgo
import (
"github.com/onsi/ginkgo/v2/internal"
)
/*
Offset(uint) is a decorator that allows you to change the stack-frame offset used when computing the line number of the node in question.
You can learn more here: https://onsi.github.io/ginkgo/#the-offset-decorator
You can learn more about decorators... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/core_dsl.go | vendor/github.com/onsi/ginkgo/v2/core_dsl.go | /*
Ginkgo is a testing framework for Go designed to help you write expressive tests.
https://github.com/onsi/ginkgo
MIT-Licensed
The godoc documentation outlines Ginkgo's API. Since Ginkgo is a Domain-Specific Language it is important to
build a mental model for Ginkgo - the narrative documentation at https://onsi.gi... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | true |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/table_dsl.go | vendor/github.com/onsi/ginkgo/v2/table_dsl.go | package ginkgo
import (
"context"
"fmt"
"reflect"
"strings"
"github.com/onsi/ginkgo/v2/internal"
"github.com/onsi/ginkgo/v2/types"
)
/*
The EntryDescription decorator allows you to pass a format string to DescribeTable() and Entry(). This format string is used to generate entry names via:
fmt.Sprintf(format... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/reporting_dsl.go | vendor/github.com/onsi/ginkgo/v2/reporting_dsl.go | package ginkgo
import (
"fmt"
"strings"
"github.com/onsi/ginkgo/v2/internal"
"github.com/onsi/ginkgo/v2/internal/global"
"github.com/onsi/ginkgo/v2/reporters"
"github.com/onsi/ginkgo/v2/types"
)
/*
Report represents the report for a Suite.
It is documented here: https://pkg.go.dev/github.com/onsi/ginkgo/v2/typ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo_cli_dependencies.go | vendor/github.com/onsi/ginkgo/v2/ginkgo_cli_dependencies.go | //go:build ginkgoclidependencies
// +build ginkgoclidependencies
package ginkgo
import (
_ "github.com/onsi/ginkgo/v2/ginkgo"
)
| go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/formatter/colorable_windows.go | vendor/github.com/onsi/ginkgo/v2/formatter/colorable_windows.go | /*
These packages are used for colorize on Windows and contributed by mattn.jp@gmail.com
* go-colorable: <https://github.com/mattn/go-colorable>
* go-isatty: <https://github.com/mattn/go-isatty>
The MIT License (MIT)
Copyright (c) 2016 Yasuhiro Matsumoto
Permission is hereby granted, free of charge, to any pers... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/formatter/formatter.go | vendor/github.com/onsi/ginkgo/v2/formatter/formatter.go | package formatter
import (
"fmt"
"os"
"regexp"
"strconv"
"strings"
)
// ColorableStdOut and ColorableStdErr enable color output support on Windows
var ColorableStdOut = newColorable(os.Stdout)
var ColorableStdErr = newColorable(os.Stderr)
const COLS = 80
type ColorMode uint8
const (
ColorModeNone ColorMode =... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/formatter/colorable_others.go | vendor/github.com/onsi/ginkgo/v2/formatter/colorable_others.go | // +build !windows
/*
These packages are used for colorize on Windows and contributed by mattn.jp@gmail.com
* go-colorable: <https://github.com/mattn/go-colorable>
* go-isatty: <https://github.com/mattn/go-isatty>
The MIT License (MIT)
Copyright (c) 2016 Yasuhiro Matsumoto
Permission is hereby granted, free of... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/main.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/main.go | package main
import (
"fmt"
"os"
"github.com/onsi/ginkgo/v2/ginkgo/build"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/generators"
"github.com/onsi/ginkgo/v2/ginkgo/labels"
"github.com/onsi/ginkgo/v2/ginkgo/outline"
"github.com/onsi/ginkgo/v2/ginkgo/run"
"github.com/onsi/ginkg... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/labels/labels_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/labels/labels_command.go | package labels
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"sort"
"strconv"
"strings"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/types"
"golang.org/x/tools/go/ast/inspector"
)
func BuildLabelsCommand() command.Command {
var cliConf... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/command/abort.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/command/abort.go | package command
import "fmt"
type AbortDetails struct {
ExitCode int
Error error
EmitUsage bool
}
func Abort(details AbortDetails) {
panic(details)
}
func AbortGracefullyWith(format string, args ...interface{}) {
Abort(AbortDetails{
ExitCode: 0,
Error: fmt.Errorf(format, args...),
EmitUsage: fa... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/command/program.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/command/program.go | package command
import (
"fmt"
"io"
"os"
"strings"
"github.com/onsi/ginkgo/v2/formatter"
"github.com/onsi/ginkgo/v2/types"
)
type Program struct {
Name string
Heading string
Commands []Command
DefaultCommand Command
DeprecatedCommands []DeprecatedCommand
//For test... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/command/command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/command/command.go | package command
import (
"fmt"
"io"
"strings"
"github.com/onsi/ginkgo/v2/formatter"
"github.com/onsi/ginkgo/v2/types"
)
type Command struct {
Name string
Flags types.GinkgoFlagSet
Usage string
ShortDoc string
Documentation string
DocLink string
Command func(args ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/unfocus/unfocus_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/unfocus/unfocus_command.go | package unfocus
import (
"bytes"
"fmt"
"go/ast"
"go/parser"
"go/token"
"io"
"os"
"path/filepath"
"strings"
"sync"
"github.com/onsi/ginkgo/v2/ginkgo/command"
)
func BuildUnfocusCommand() command.Command {
return command.Command{
Name: "unfocus",
Usage: "ginkgo unfocus",
ShortDoc: "Recursively... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/boostrap_templates.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/boostrap_templates.go | package generators
var bootstrapText = `package {{.Package}}
import (
"testing"
{{.GinkgoImport}}
{{.GomegaImport}}
)
func Test{{.FormattedName}}(t *testing.T) {
{{.GomegaPackage}}RegisterFailHandler({{.GinkgoPackage}}Fail)
{{.GinkgoPackage}}RunSpecs(t, "{{.FormattedName}} Suite")
}
`
var agoutiBootstrapText ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/bootstrap_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/bootstrap_command.go | package generators
import (
"bytes"
"encoding/json"
"fmt"
"os"
"text/template"
sprig "github.com/go-task/slim-sprig/v3"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/types"
)
func BuildBootstrapCommand() command.Command {
conf := Generator... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generators_common.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generators_common.go | package generators
import (
"fmt"
"go/build"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/onsi/ginkgo/v2/ginkgo/command"
)
type GeneratorsConfig struct {
Agouti, NoDot, Internal bool
CustomTemplate string
CustomTemplateData string
Tags string
}
func getPackageAndF... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_command.go | package generators
import (
"bytes"
"encoding/json"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"
"text/template"
sprig "github.com/go-task/slim-sprig/v3"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/types"
)
func BuildGenerateCommand(... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_templates.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/generators/generate_templates.go | package generators
var specText = `{{.BuildTags}}
package {{.Package}}
import (
{{.GinkgoImport}}
{{.GomegaImport}}
{{if .ImportPackage}}"{{.PackageImportPath}}"{{end}}
)
var _ = {{.GinkgoPackage}}Describe("{{.Subject}}", func() {
})
`
var agoutiSpecText = `{{.BuildTags}}
package {{.Package}}
import (
{{.Gin... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/build/build_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/build/build_command.go | package build
import (
"fmt"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/types"
)
func BuildBuildCommand() command.Command {
var cliConfig = types.NewDefaultCLIConfig()
var goFlagsConfig = types.NewDefaultGoFlagsConfig()
flags, err := type... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/test_suite.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/test_suite.go | package internal
import (
"errors"
"math/rand"
"os"
"path"
"path/filepath"
"regexp"
"runtime"
"strings"
"github.com/onsi/ginkgo/v2/types"
)
const TIMEOUT_ELAPSED_FAILURE_REASON = "Suite did not run because the timeout elapsed"
const PRIOR_FAILURES_FAILURE_REASON = "Suite did not run because prior suites fai... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/utils.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/utils.go | package internal
import (
"fmt"
"io"
"os"
"os/exec"
"github.com/onsi/ginkgo/v2/formatter"
"github.com/onsi/ginkgo/v2/ginkgo/command"
)
func FileExists(path string) bool {
_, err := os.Stat(path)
return err == nil
}
func CopyFile(src string, dest string) error {
srcFile, err := os.Open(src)
if err != nil {... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/verify_version.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/verify_version.go | package internal
import (
"fmt"
"os/exec"
"regexp"
"strings"
"github.com/onsi/ginkgo/v2/formatter"
"github.com/onsi/ginkgo/v2/types"
)
var versiorRe = regexp.MustCompile(`v(\d+\.\d+\.\d+)`)
func VerifyCLIAndFrameworkVersion(suites TestSuites) {
cliVersion := types.VERSION
mismatches := map[string][]string{}... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/compile.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/compile.go | package internal
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"github.com/onsi/ginkgo/v2/types"
)
func CompileSuite(suite TestSuite, goFlagsConfig types.GoFlagsConfig) TestSuite {
if suite.PathToCompiledTest != "" {
return suite
}
suite.CompilationError = nil
path, err := filepath.Ab... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go | package internal
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"regexp"
"strconv"
"github.com/google/pprof/profile"
"github.com/onsi/ginkgo/v2/reporters"
"github.com/onsi/ginkgo/v2/types"
"golang.org/x/tools/cover"
)
func AbsPathForGeneratedAsset(assetName string, suite TestSuite, cliConfig types.CLIConfig... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/gocovmerge.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/gocovmerge.go | // Copyright (c) 2015, Wade Simmons
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice, this
// list of conditions an... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/run.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/run.go | package internal
import (
"bytes"
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"
"syscall"
"time"
"github.com/onsi/ginkgo/v2/formatter"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/internal/parallel_support"
"github.com/onsi/ginkgo/v2/reporters"
"github.com/onsi/g... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/run/run_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/run/run_command.go | package run
import (
"fmt"
"os"
"strings"
"time"
"github.com/onsi/ginkgo/v2/formatter"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/internal/interrupt_handler"
"github.com/onsi/ginkgo/v2/types"
)
func BuildRunCommand() command.Command {
v... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/delta_tracker.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/delta_tracker.go | package watch
import (
"fmt"
"regexp"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
)
type SuiteErrors map[internal.TestSuite]error
type DeltaTracker struct {
maxDepth int
watchRegExp *regexp.Regexp
suites map[string]*Suite
packageHashes *PackageHashes
}
func NewDeltaTracker(maxDepth int, watch... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/delta.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/delta.go | package watch
import "sort"
type Delta struct {
ModifiedPackages []string
NewSuites []*Suite
RemovedSuites []*Suite
modifiedSuites []*Suite
}
type DescendingByDelta []*Suite
func (a DescendingByDelta) Len() int { return len(a) }
func (a DescendingByDelta) Swap(i, j int) { a[i], a[j] = a[j]... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hash.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hash.go | package watch
import (
"fmt"
"os"
"regexp"
"time"
)
var goTestRegExp = regexp.MustCompile(`_test\.go$`)
type PackageHash struct {
CodeModifiedTime time.Time
TestModifiedTime time.Time
Deleted bool
path string
codeHash string
testHash string
watchRegExp *regexp.Regexp
}
func NewPack... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hashes.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/package_hashes.go | package watch
import (
"path/filepath"
"regexp"
"sync"
)
type PackageHashes struct {
PackageHashes map[string]*PackageHash
usedPaths map[string]bool
watchRegExp *regexp.Regexp
lock *sync.Mutex
}
func NewPackageHashes(watchRegExp *regexp.Regexp) *PackageHashes {
return &PackageHashes{
Package... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/suite.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/suite.go | package watch
import (
"fmt"
"math"
"time"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
)
type Suite struct {
Suite internal.TestSuite
RunTime time.Time
Dependencies Dependencies
sharedPackageHashes *PackageHashes
}
func NewSuite(suite internal.TestSuite, maxDepth int, sharedPackageHashes *Packa... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/watch_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/watch_command.go | package watch
import (
"fmt"
"regexp"
"time"
"github.com/onsi/ginkgo/v2/formatter"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/ginkgo/internal"
"github.com/onsi/ginkgo/v2/internal/interrupt_handler"
"github.com/onsi/ginkgo/v2/types"
)
func BuildWatchCommand() command.Command {
var ... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/dependencies.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/dependencies.go | package watch
import (
"go/build"
"regexp"
)
var ginkgoAndGomegaFilter = regexp.MustCompile(`github\.com/onsi/ginkgo|github\.com/onsi/gomega`)
var ginkgoIntegrationTestFilter = regexp.MustCompile(`github\.com/onsi/ginkgo/integration`) //allow us to integration test this thing
type Dependencies struct {
deps map[s... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/outline_command.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/outline_command.go | package outline
import (
"encoding/json"
"fmt"
"go/parser"
"go/token"
"os"
"github.com/onsi/ginkgo/v2/ginkgo/command"
"github.com/onsi/ginkgo/v2/types"
)
const (
// indentWidth is the width used by the 'indent' output
indentWidth = 4
// stdinAlias is a portable alias for stdin. This convention is used in
... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/ginkgo.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/ginkgo.go | package outline
import (
"go/ast"
"go/token"
"strconv"
"github.com/onsi/ginkgo/v2/types"
)
const (
// undefinedTextAlt is used if the spec/container text cannot be derived
undefinedTextAlt = "undefined"
)
// ginkgoMetadata holds useful bits of information for every entry in the outline
type ginkgoMetadata str... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/outline.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/outline.go | package outline
import (
"encoding/json"
"fmt"
"go/ast"
"go/token"
"strings"
"golang.org/x/tools/go/ast/inspector"
)
const (
// ginkgoImportPath is the well-known ginkgo import path
ginkgoImportPath = "github.com/onsi/ginkgo/v2"
)
// FromASTFile returns an outline for a Ginkgo test source file
func FromASTF... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/import.go | vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/import.go | // Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Most of the required functions were available in the
// "golang.org/x/tools/go/ast/astutil" package, but not exported.
// They were copied from https://githu... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/types/flags.go | vendor/github.com/onsi/ginkgo/v2/types/flags.go | package types
import (
"flag"
"fmt"
"io"
"reflect"
"strings"
"time"
"github.com/onsi/ginkgo/v2/formatter"
)
type GinkgoFlag struct {
Name string
KeyPath string
SectionKey string
Usage string
UsageArgument string
UsageDefaultValue string
DeprecatedName string
DeprecatedDoc... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
quay/quay-operator | https://github.com/quay/quay-operator/blob/5a999da6a496e943d67219c8dca531b777a2ee1f/vendor/github.com/onsi/ginkgo/v2/types/report_entry.go | vendor/github.com/onsi/ginkgo/v2/types/report_entry.go | package types
import (
"encoding/json"
"fmt"
"time"
)
// ReportEntryValue wraps a report entry's value ensuring it can be encoded and decoded safely into reports
// and across the network connection when running in parallel
type ReportEntryValue struct {
raw interface{} //unexported to prevent gob from... | go | Apache-2.0 | 5a999da6a496e943d67219c8dca531b777a2ee1f | 2026-01-07T09:45:38.853115Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.