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
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gbytes/gbuffer_suite_test.go
vendor/github.com/onsi/gomega/gbytes/gbuffer_suite_test.go
package gbytes_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestGbytes(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Gbytes Suite") }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/types/types.go
vendor/github.com/onsi/gomega/types/types.go
package types type GomegaFailHandler func(message string, callerSkip ...int) //A simple *testing.T interface wrapper type GomegaTestingT interface { Fatalf(format string, args ...interface{}) } //All Gomega matchers must implement the GomegaMatcher interface // //For details on writing custom matchers, check out: h...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/oraclematcher/oracle_matcher.go
vendor/github.com/onsi/gomega/internal/oraclematcher/oracle_matcher.go
package oraclematcher import "github.com/onsi/gomega/types" /* GomegaMatchers that also match the OracleMatcher interface can convey information about whether or not their result will change upon future attempts. This allows `Eventually` and `Consistently` to short circuit if success becomes impossible. For example...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/asyncassertion/async_assertion.go
vendor/github.com/onsi/gomega/internal/asyncassertion/async_assertion.go
package asyncassertion import ( "errors" "fmt" "reflect" "time" "github.com/onsi/gomega/internal/oraclematcher" "github.com/onsi/gomega/types" ) type AsyncAssertionType uint const ( AsyncAssertionTypeEventually AsyncAssertionType = iota AsyncAssertionTypeConsistently ) type AsyncAssertion struct { asyncTy...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/asyncassertion/async_assertion_test.go
vendor/github.com/onsi/gomega/internal/asyncassertion/async_assertion_test.go
package asyncassertion_test import ( "errors" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/internal/asyncassertion" ) var _ = Describe("Async Assertion", func() { var ( failureMessage string callerSkip int ) var fakeFailHandler = func(message string, skip .....
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/asyncassertion/async_assertion_suite_test.go
vendor/github.com/onsi/gomega/internal/asyncassertion/async_assertion_suite_test.go
package asyncassertion_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestAsyncAssertion(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "AsyncAssertion Suite") }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/testingtsupport/testing_t_support.go
vendor/github.com/onsi/gomega/internal/testingtsupport/testing_t_support.go
package testingtsupport import ( "regexp" "runtime/debug" "strings" "github.com/onsi/gomega/types" ) type gomegaTestingT interface { Fatalf(format string, args ...interface{}) } func BuildTestingTGomegaFailHandler(t gomegaTestingT) types.GomegaFailHandler { return func(message string, callerSkip ...int) { s...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/testingtsupport/testing_t_support_test.go
vendor/github.com/onsi/gomega/internal/testingtsupport/testing_t_support_test.go
package testingtsupport_test import ( . "github.com/onsi/gomega" "fmt" "testing" ) type FakeT struct { LastCall string } func (f *FakeT) Fatalf(format string, args ...interface{}) { f.LastCall = fmt.Sprintf(format, args...) } func TestTestingT(t *testing.T) { RegisterTestingT(t) Expect(true).Should(BeTrue()...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/assertion/assertion_suite_test.go
vendor/github.com/onsi/gomega/internal/assertion/assertion_suite_test.go
package assertion_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestAssertion(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Assertion Suite") }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/assertion/assertion.go
vendor/github.com/onsi/gomega/internal/assertion/assertion.go
package assertion import ( "fmt" "reflect" "github.com/onsi/gomega/types" ) type Assertion struct { actualInput interface{} fail types.GomegaFailHandler offset int extra []interface{} } func New(actualInput interface{}, fail types.GomegaFailHandler, offset int, extra ...interface{}) *Assert...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/assertion/assertion_test.go
vendor/github.com/onsi/gomega/internal/assertion/assertion_test.go
package assertion_test import ( "errors" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/internal/assertion" "github.com/onsi/gomega/internal/fakematcher" ) var _ = Describe("Assertion", func() { var ( a *Assertion failureMessage string failureCallerSkip...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/internal/fakematcher/fake_matcher.go
vendor/github.com/onsi/gomega/internal/fakematcher/fake_matcher.go
package fakematcher import "fmt" type FakeMatcher struct { ReceivedActual interface{} MatchesToReturn bool ErrToReturn error } func (matcher *FakeMatcher) Match(actual interface{}) (bool, error) { matcher.ReceivedActual = actual return matcher.MatchesToReturn, matcher.ErrToReturn } func (matcher *FakeMat...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/match_error_matcher_test.go
vendor/github.com/onsi/gomega/matchers/match_error_matcher_test.go
package matchers_test import ( "errors" "fmt" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) type CustomError struct { } func (c CustomError) Error() string { return "an error" } var _ = Describe("MatchErrorMatcher", func() { Context("When asserting against an er...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_len_matcher_test.go
vendor/github.com/onsi/gomega/matchers/have_len_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("HaveLen", func() { Context("when passed a supported type", func() { It("should do the right thing", func() { Expect("").Should(HaveLen(0)) Expect("AA").Should(HaveLe...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_sent_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_sent_matcher_test.go
package matchers_test import ( "time" . "github.com/onsi/gomega/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("BeSent", func() { Context("when passed a channel and a matching type", func() { Context("when the channel is ready to receive", func() { It("should succeed an...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/contain_element_matcher_test.go
vendor/github.com/onsi/gomega/matchers/contain_element_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("ContainElement", func() { Context("when passed a supported type", func() { Context("and expecting a non-matcher", func() { It("should do the right thing", func() { ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/panic_matcher_test.go
vendor/github.com/onsi/gomega/matchers/panic_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("Panic", func() { Context("when passed something that's not a function that takes zero arguments and returns nothing", func() { It("should error", func() { success, err ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go
vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go
package matchers import "github.com/onsi/gomega/format" type BeNilMatcher struct { } func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { return isNil(actual), nil } func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { return format.Message(actual, "to b...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_false_matcher.go
vendor/github.com/onsi/gomega/matchers/be_false_matcher.go
package matchers import ( "fmt" "github.com/onsi/gomega/format" ) type BeFalseMatcher struct { } func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err error) { if !isBool(actual) { return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) } return actual == fa...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_identical_to_test.go
vendor/github.com/onsi/gomega/matchers/be_identical_to_test.go
package matchers_test import ( "errors" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeIdenticalTo", func() { Context("when asserting that nil equals nil", func() { It("should error", func() { success, err := (&BeIdenticalToMatcher{Expected: ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/matcher_tests_suite_test.go
vendor/github.com/onsi/gomega/matchers/matcher_tests_suite_test.go
package matchers_test import ( "fmt" "io/ioutil" "os" "testing" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) type myStringer struct { a string } func (s *myStringer) String() string { return s.a } type StringAlias string type myCustomType struct { s string n int f float32 arr []string...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/and.go
vendor/github.com/onsi/gomega/matchers/and.go
package matchers import ( "fmt" "github.com/onsi/gomega/format" "github.com/onsi/gomega/internal/oraclematcher" "github.com/onsi/gomega/types" ) type AndMatcher struct { Matchers []types.GomegaMatcher // state firstFailedMatcher types.GomegaMatcher } func (m *AndMatcher) Match(actual interface{}) (success b...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go
vendor/github.com/onsi/gomega/matchers/be_temporally_matcher.go
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.Message(actual, fmt.Sprintf("t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/contain_substring_matcher_test.go
vendor/github.com/onsi/gomega/matchers/contain_substring_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("ContainSubstringMatcher", func() { Context("when actual is a string", func() { It("should match against the string", func() { Expect("Marvelous").Should(ContainSubstrin...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher_test.go
vendor/github.com/onsi/gomega/matchers/match_yaml_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("MatchYAMLMatcher", func() { Context("When passed stringifiables", func() { It("should succeed if the YAML matches", func() { Expect("---").Should(MatchYAML("")) Exp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_closed_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_closed_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeClosedMatcher", func() { Context("when passed a channel", func() { It("should do the right thing", func() { openChannel := make(chan bool) Expect(openChannel).Shou...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go
vendor/github.com/onsi/gomega/matchers/be_sent_matcher.go
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("BeSent expects a channel. ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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/internal/oraclematcher" "github.com/onsi/gomega/types" ) type WithTransformMatcher struct { // input Transform interface{} // must be a function of one parameter that returns one value Matcher types.GomegaMatcher // cached value transformA...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_empty_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_empty_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeEmpty", func() { Context("when passed a supported type", func() { It("should do the right thing", func() { Expect("").Should(BeEmpty()) Expect(" ").ShouldNot(BeEmp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go
vendor/github.com/onsi/gomega/matchers/contain_substring_matcher.go
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 !ok { return false, fm...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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/ */ package matchers import ( "fmt" "reflect" ) type omegaMatcher interface { Match(actual interface{}) (success bool, ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/succeed_matcher.go
vendor/github.com/onsi/gomega/matchers/succeed_matcher.go
package matchers import ( "fmt" "github.com/onsi/gomega/format" ) type SucceedMatcher struct { } func (matcher *SucceedMatcher) Match(actual interface{}) (success bool, err error) { // is purely nil? if actual == nil { return true, nil } // must be an 'error' type if !isError(actual) { return false, fmt...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_cap_matcher_test.go
vendor/github.com/onsi/gomega/matchers/have_cap_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("HaveCap", func() { Context("when passed a supported type", func() { It("should do the right thing", func() { Expect([0]int{}).Should(HaveCap(0)) Expect([2]int{1}).Sh...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_a_regular_file_test.go
vendor/github.com/onsi/gomega/matchers/be_a_regular_file_test.go
package matchers_test import ( "io/ioutil" "os" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeARegularFileMatcher", func() { Context("when passed a string", func() { It("should do the right thing", func() { Expect("/dne/test").ShouldNot(BeA...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeEquivalentTo", func() { Context("when asserting that nil is equivalent to nil", func() { It("should error", func() { success, err := (&BeEquivalentToMatcher{Expected:...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_a_directory_test.go
vendor/github.com/onsi/gomega/matchers/be_a_directory_test.go
package matchers_test import ( "io/ioutil" "os" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeADirectoryMatcher", func() { Context("when passed a string", func() { It("should do the right thing", func() { Expect("/dne/test").ShouldNot(BeADi...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/and_test.go
vendor/github.com/onsi/gomega/matchers/and_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" "github.com/onsi/gomega/types" ) // sample data var ( // example input input = "hi" // some matchers that succeed against the input true1 = HaveLen(2) true2 = Equal("hi") true3 = MatchReg...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_prefix_matcher_test.go
vendor/github.com/onsi/gomega/matchers/have_prefix_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("HavePrefixMatcher", func() { Context("when actual is a string", func() { It("should match a string prefix", func() { Expect("Ab").Should(HavePrefix("A")) Expect("A")...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/receive_matcher_test.go
vendor/github.com/onsi/gomega/matchers/receive_matcher_test.go
package matchers_test import ( "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) type kungFuActor interface { DrunkenMaster() bool } type jackie struct { name string } func (j *jackie) DrunkenMaster() bool { return true } var _ = Describe("ReceiveMatcher", f...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_key_matcher_test.go
vendor/github.com/onsi/gomega/matchers/have_key_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("HaveKey", func() { var ( stringKeys map[string]int intKeys map[int]string objKeys map[*myCustomType]string customA *myCustomType customB *myCustomType ) B...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher_test.go
vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("HaveKeyWithValue", func() { var ( stringKeys map[string]int intKeys map[int]string objKeys map[*myCustomType]*myCustomType customA *myCustomType customB *my...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/consist_of.go
vendor/github.com/onsi/gomega/matchers/consist_of.go
package matchers import ( "fmt" "reflect" "github.com/onsi/gomega/format" "github.com/onsi/gomega/matchers/support/goraph/bipartitegraph" ) type ConsistOfMatcher struct { Elements []interface{} } func (matcher *ConsistOfMatcher) Match(actual interface{}) (success bool, err error) { if !isArrayOrSlice(actual) ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/match_error_matcher.go
vendor/github.com/onsi/gomega/matchers/match_error_matcher.go
package matchers import ( "fmt" "reflect" "github.com/onsi/gomega/format" ) type MatchErrorMatcher struct { Expected interface{} } func (matcher *MatchErrorMatcher) Match(actual interface{}) (success bool, err error) { if isNil(actual) { return false, fmt.Errorf("Expected an error, got nil") } if !isError...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_numerically_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_numerically_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeNumerically", func() { Context("when passed a number", func() { It("should support ==", func() { Expect(uint32(5)).Should(BeNumerically("==", 5)) Expect(float64(5....
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/or_test.go
vendor/github.com/onsi/gomega/matchers/or_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("OrMatcher", func() { It("works with positive cases", func() { Expect(input).To(Or(true1)) Expect(input).To(Or(true1, true2)) Expect(input).To(Or(true1, false1)) Expe...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/equal_matcher_test.go
vendor/github.com/onsi/gomega/matchers/equal_matcher_test.go
package matchers_test import ( "errors" "strings" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("Equal", func() { Context("when asserting that nil equals nil", func() { It("should error", func() { success, err := (&EqualMatcher{Expected: nil})...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/consist_of_test.go
vendor/github.com/onsi/gomega/matchers/consist_of_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("ConsistOf", func() { Context("with a slice", func() { It("should do the right thing", func() { Expect([]string{"foo", "bar", "baz"}).Should(ConsistOf("foo", "bar", "baz")) Expect([]string{"foo", "bar", ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_temporally_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_temporally_matcher_test.go
package matchers_test import ( "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeTemporally", func() { var t0, t1, t2 time.Time BeforeEach(func() { t0 = time.Now() t1 = t0.Add(time.Second) t2 = t0.Add(-time.Second) }) Context("When ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go
vendor/github.com/onsi/gomega/matchers/contain_element_matcher.go
package matchers import ( "fmt" "reflect" "github.com/onsi/gomega/format" ) type ContainElementMatcher struct { Element interface{} } func (matcher *ContainElementMatcher) Match(actual interface{}) (success bool, err error) { if !isArrayOrSlice(actual) && !isMap(actual) { return false, fmt.Errorf("ContainEle...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go
vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go
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 array/channel/slice. Got:\n...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go
vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go
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 format.Message(actual, fmt.Sprintf("to be %s", matcher.Comp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher_test.go
vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("AssignableToTypeOf", func() { Context("When asserting assignability between types", func() { It("should do the right thing", func() { Expect(0).Should(BeAssignableToTyp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/match_xml_matcher_test.go
vendor/github.com/onsi/gomega/matchers/match_xml_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("MatchXMLMatcher", func() { var ( sample_01 = readFileContents("test_data/xml/sample_01.xml") sample_02 = readFileContents("test_data/xml/sample_02.xml") sample_03 = r...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/succeed_matcher_test.go
vendor/github.com/onsi/gomega/matchers/succeed_matcher_test.go
package matchers_test import ( "errors" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) func Erroring() error { return errors.New("bam") } func NotErroring() error { return nil } type AnyType struct{} func Invalid() *AnyType { return nil } var _ = Describe("Succ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/match_regexp_matcher_test.go
vendor/github.com/onsi/gomega/matchers/match_regexp_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("MatchRegexp", func() { Context("when actual is a string", func() { It("should match against the string", func() { Expect(" a2!bla").Should(MatchRegexp(`\d!`)) Expect...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_suffix_matcher_test.go
vendor/github.com/onsi/gomega/matchers/have_suffix_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("HaveSuffixMatcher", func() { Context("when actual is a string", func() { It("should match a string suffix", func() { Expect("Ab").Should(HaveSuffix("b")) Expect("A")...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/not.go
vendor/github.com/onsi/gomega/matchers/not.go
package matchers import ( "github.com/onsi/gomega/internal/oraclematcher" "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 ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_true_matcher.go
vendor/github.com/onsi/gomega/matchers/be_true_matcher.go
package matchers import ( "fmt" "github.com/onsi/gomega/format" ) type BeTrueMatcher struct { } func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error) { if !isBool(actual) { return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) } return actual.(bool),...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_a_directory.go
vendor/github.com/onsi/gomega/matchers/be_a_directory.go
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: return fmt.Sprintf("file mode ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_zero_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_zero_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("BeZero", func() { It("should succeed if the passed in object is the zero value for its type", func() { Expect(nil).Should(BeZero()) Expect("").Should(BeZero()) Expect(" ").ShouldNot(BeZero()) Expect(0...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go
vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go
package matchers import ( "fmt" "reflect" "strings" "github.com/onsi/gomega/format" "gopkg.in/yaml.v2" ) type MatchYAMLMatcher struct { YAMLToMatch interface{} } func (matcher *MatchYAMLMatcher) Match(actual interface{}) (success bool, err error) { actualString, expectedString, err := matcher.toStrings(actua...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go
vendor/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go
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 false, fmt.Errorf("Both actua...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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 { object interface{} } func (matcher *PanicMatcher) Match(actual interface{}) (success bool, err error) { if actual == nil { return false, fmt.Errorf("PanicMatcher expects a non-nil actual.") } actualType ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_identical_to.go
vendor/github.com/onsi/gomega/matchers/be_identical_to.go
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 false, fmt.Errorf("Refusin...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_false_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_false_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeFalse", func() { It("should handle true and false correctly", func() { Expect(true).ShouldNot(BeFalse()) Expect(false).Should(BeFalse()) }) It("should only support ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_true_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_true_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeTrue", func() { It("should handle true and false correctly", func() { Expect(true).Should(BeTrue()) Expect(false).ShouldNot(BeTrue()) }) It("should only support boo...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/with_transform_test.go
vendor/github.com/onsi/gomega/matchers/with_transform_test.go
package matchers_test import ( "errors" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("WithTransformMatcher", func() { var plus1 = func(i int) int { return i + 1 } Context("Panic if transform function invalid", func() { panicsWithTransformer :=...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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" "reflect" "strings" "github.com/onsi/gomega/format" ) type MatchJSONMatcher struct { JSONToMatch interface{} firstFailurePath []interface{} } func (matcher *MatchJSONMatcher) Match(actual interface{}) (success bool, err error) { actualString, exp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/not_test.go
vendor/github.com/onsi/gomega/matchers/not_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("NotMatcher", func() { Context("basic examples", func() { It("works", func() { Expect(input).To(Not(false1)) Expect(input).To(Not(Not(true2))) Expect(input).ToNot(...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go
vendor/github.com/onsi/gomega/matchers/be_a_regular_file.go
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.Sprintf("file mode is: %s", f...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go
vendor/github.com/onsi/gomega/matchers/have_occurred_matcher.go
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 !isError(actual) { return...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go
vendor/github.com/onsi/gomega/matchers/be_an_existing_file.go
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 false, fmt.Errorf("BeAnExist...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/match_json_matcher_test.go
vendor/github.com/onsi/gomega/matchers/match_json_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("MatchJSONMatcher", func() { Context("When passed stringifiables", func() { It("should succeed if the JSON matches", func() { Expect("{}").Should(MatchJSON("{}")) Exp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go
vendor/github.com/onsi/gomega/matchers/assignable_to_type_of_matcher.go
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 { return false, fmt.Errorf("Re...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go
vendor/github.com/onsi/gomega/matchers/have_key_with_value_matcher.go
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.Errorf("HaveKeyWithValue...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_nil_matcher_test.go
vendor/github.com/onsi/gomega/matchers/be_nil_matcher_test.go
package matchers_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("BeNil", func() { It("should succeed when passed nil", func() { Expect(nil).Should(BeNil()) }) It("should succeed when passed a typed nil", func() { var a []int Expect(a).Should(BeNil()) }) It("shoul...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/receive_matcher.go
vendor/github.com/onsi/gomega/matchers/receive_matcher.go
package matchers import ( "fmt" "reflect" "github.com/onsi/gomega/format" ) type ReceiveMatcher struct { Arg interface{} receivedValue reflect.Value channelClosed bool } func (matcher *ReceiveMatcher) Match(actual interface{}) (success bool, err error) { if !isChan(actual) { return false, fmt.Err...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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/internal/oraclematcher" "github.com/onsi/gomega/types" ) type OrMatcher struct { Matchers []types.GomegaMatcher // state firstSuccessfulMatcher types.GomegaMatcher } func (m *OrMatcher) Match(actual interface{}) (success...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go
vendor/github.com/onsi/gomega/matchers/be_closed_matcher.go
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%s", format.Object(actual,...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go
vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go
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/array/map/channel/slice. Got...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_key_matcher.go
vendor/github.com/onsi/gomega/matchers/have_key_matcher.go
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. Got:%s", format.Object(...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/have_occurred_matcher_test.go
vendor/github.com/onsi/gomega/matchers/have_occurred_matcher_test.go
package matchers_test import ( "errors" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) type CustomErr struct { msg string } func (e *CustomErr) Error() string { return e.msg } var _ = Describe("HaveOccurred", func() { It("should succeed if matching an error", fun...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers/be_an_existing_file_test.go
vendor/github.com/onsi/gomega/matchers/be_an_existing_file_test.go
package matchers_test import ( "io/ioutil" "os" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/matchers" ) var _ = Describe("BeAnExistingFileMatcher", func() { Context("when passed a string", func() { It("should do the right thing", func() { Expect("/dne/test").ShouldNot(B...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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 } type NodeOrderedSet []Node
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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/node" import . "github.com/onsi/gomega/matchers/support/goraph/edge" import "github.com/onsi/gomega/matchers/support/goraph/util" func (bg *BipartiteGraph) LargestMatching() (matching EdgeSet) { paths := bg.maximalDisjointSLAPCollection(...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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 "errors" 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 [...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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 Node Node2 Node } type EdgeSet []Edge func (ec EdgeSet) Free(node Node) bool { for _, e := range ec { if e.Node1 == node || e.Node2 == node { return false } } return true } func (ec EdgeSet) Contains(e...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/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. */ package format import ( "fmt" "reflect" "strconv" "strings" "time" ) // Use MaxDepth to set the maximum recursion depth when printing deeply nested objects v...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/format/format_test.go
vendor/github.com/onsi/gomega/format/format_test.go
package format_test import ( "fmt" "strings" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/format" "github.com/onsi/gomega/types" ) //recursive struct type StringAlias string type ByteAlias []byte type IntAlias int type AStruct struct { Exported string } type Simpl...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/format/format_suite_test.go
vendor/github.com/onsi/gomega/format/format_suite_test.go
package format_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestFormat(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Format Suite") }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/ginkgo/ginkgo_dsl.go
vendor/github.com/onsi/ginkgo/ginkgo_dsl.go
/* Ginkgo is a BDD-style testing framework for Golang The godoc documentation describes Ginkgo's API. More comprehensive documentation (with examples!) is available at http://onsi.github.io/ginkgo/ Ginkgo's preferred matcher library is [Gomega](http://github.com/onsi/gomega) Ginkgo on Github: http://github.com/onsi...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false