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/smartystreets/goconvey/convey/reporting/init.go
vendor/github.com/smartystreets/goconvey/convey/reporting/init.go
package reporting import ( "os" "runtime" "strings" ) func init() { if !isColorableTerminal() { monochrome() } if runtime.GOOS == "windows" { success, failure, error_ = dotSuccess, dotFailure, dotError } } func BuildJsonReporter() Reporter { out := NewPrinter(NewConsole()) return NewReporters( NewGoT...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/statistics.go
vendor/github.com/smartystreets/goconvey/convey/reporting/statistics.go
package reporting import ( "fmt" "sync" ) func (self *statistics) BeginStory(story *StoryReport) {} func (self *statistics) Enter(scope *ScopeReport) {} func (self *statistics) Report(report *AssertionResult) { self.Lock() defer self.Unlock() if !self.failing && report.Failure != "" { self.failing = true }...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/story.go
vendor/github.com/smartystreets/goconvey/convey/reporting/story.go
// TODO: in order for this reporter to be completely honest // we need to retrofit to be more like the json reporter such that: // 1. it maintains ScopeResult collections, which count assertions // 2. it reports only after EndStory(), so that all tick marks // are placed near the appropriate title. // 3. Under unit ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/dot.go
vendor/github.com/smartystreets/goconvey/convey/reporting/dot.go
package reporting import "fmt" type dot struct{ out *Printer } func (self *dot) BeginStory(story *StoryReport) {} func (self *dot) Enter(scope *ScopeReport) {} func (self *dot) Report(report *AssertionResult) { if report.Error != nil { fmt.Print(redColor) self.out.Insert(dotError) } else if report.Failure !=...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/gotest_test.go
vendor/github.com/smartystreets/goconvey/convey/reporting/gotest_test.go
package reporting import "testing" func TestReporterReceivesSuccessfulReport(t *testing.T) { reporter := NewGoTestReporter() test := new(fakeTest) reporter.BeginStory(NewStoryReport(test)) reporter.Report(NewSuccessReport()) if test.failed { t.Errorf("Should have have marked test as failed--the report reflect...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/reporter_test.go
vendor/github.com/smartystreets/goconvey/convey/reporting/reporter_test.go
package reporting import ( "runtime" "testing" ) func TestEachNestedReporterReceivesTheCallFromTheContainingReporter(t *testing.T) { fake1 := newFakeReporter() fake2 := newFakeReporter() reporter := NewReporters(fake1, fake2) reporter.BeginStory(nil) assertTrue(t, fake1.begun) assertTrue(t, fake2.begun) re...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/printer.go
vendor/github.com/smartystreets/goconvey/convey/reporting/printer.go
package reporting import ( "fmt" "io" "strings" ) type Printer struct { out io.Writer prefix string } func (self *Printer) Println(message string, values ...interface{}) { formatted := self.format(message, values...) + newline self.out.Write([]byte(formatted)) } func (self *Printer) Print(message string, ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/console.go
vendor/github.com/smartystreets/goconvey/convey/reporting/console.go
package reporting import ( "fmt" "io" ) type console struct{} func (self *console) Write(p []byte) (n int, err error) { return fmt.Print(string(p)) } func NewConsole() io.Writer { return new(console) }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/reporter.go
vendor/github.com/smartystreets/goconvey/convey/reporting/reporter.go
package reporting import "io" type Reporter interface { BeginStory(story *StoryReport) Enter(scope *ScopeReport) Report(r *AssertionResult) Exit() EndStory() io.Writer } type reporters struct{ collection []Reporter } func (self *reporters) BeginStory(s *StoryReport) { self.foreach(func(r Reporter) { r.BeginSt...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/problems.go
vendor/github.com/smartystreets/goconvey/convey/reporting/problems.go
package reporting import "fmt" type problem struct { silent bool out *Printer errors []*AssertionResult failures []*AssertionResult } func (self *problem) BeginStory(story *StoryReport) {} func (self *problem) Enter(scope *ScopeReport) {} func (self *problem) Report(report *AssertionResult) { if repo...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/dot_test.go
vendor/github.com/smartystreets/goconvey/convey/reporting/dot_test.go
package reporting import ( "errors" "testing" ) func TestDotReporterAssertionPrinting(t *testing.T) { monochrome() file := newMemoryFile() printer := NewPrinter(file) reporter := NewDotReporter(printer) reporter.Report(NewSuccessReport()) reporter.Report(NewFailureReport("failed")) reporter.Report(NewErrorR...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/problems_test.go
vendor/github.com/smartystreets/goconvey/convey/reporting/problems_test.go
package reporting import ( "strings" "testing" ) func TestNoopProblemReporterActions(t *testing.T) { file, reporter := setup() reporter.BeginStory(nil) reporter.Enter(nil) reporter.Exit() expected := "" actual := file.String() if expected != actual { t.Errorf("Expected: '(blank)'\nActual: '%s'", actual) ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/reports.go
vendor/github.com/smartystreets/goconvey/convey/reporting/reports.go
package reporting import ( "encoding/json" "fmt" "runtime" "strings" "github.com/smartystreets/goconvey/convey/gotest" ) ////////////////// ScopeReport //////////////////// type ScopeReport struct { Title string File string Line int } func NewScopeReport(title string) *ScopeReport { file, line, _ := got...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/doc.go
vendor/github.com/smartystreets/goconvey/convey/reporting/doc.go
// Package reporting contains internal functionality related // to console reporting and output. Although this package has // exported names is not intended for public consumption. See the // examples package for how to use this project. package reporting
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/reporting/printer_test.go
vendor/github.com/smartystreets/goconvey/convey/reporting/printer_test.go
package reporting import "testing" func TestPrint(t *testing.T) { file := newMemoryFile() printer := NewPrinter(file) const expected = "Hello, World!" printer.Print(expected) if file.buffer != expected { t.Errorf("Expected '%s' to equal '%s'.", expected, file.buffer) } } func TestPrintFormat(t *testing.T) ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/gotest/utils.go
vendor/github.com/smartystreets/goconvey/convey/gotest/utils.go
// Package gotest contains internal functionality. Although this package // contains one or more exported names it is not intended for public // consumption. See the examples package for how to use this project. package gotest import ( "runtime" "strings" ) func ResolveExternalCaller() (file string, line int, name ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/goconvey/convey/gotest/doc_test.go
vendor/github.com/smartystreets/goconvey/convey/gotest/doc_test.go
package gotest
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/time.go
vendor/github.com/smartystreets/assertions/time.go
package assertions import ( "fmt" "time" ) // ShouldHappenBefore receives exactly 2 time.Time arguments and asserts that the first happens before the second. func ShouldHappenBefore(actual interface{}, expected ...interface{}) string { if fail := need(1, expected); fail != success { return fail } actualTime, f...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/panic_test.go
vendor/github.com/smartystreets/assertions/panic_test.go
package assertions import "fmt" func (this *AssertionsFixture) TestShouldPanic() { this.fail(so(func() {}, ShouldPanic, 1), "This assertion requires exactly 0 comparison values (you provided 1).") this.fail(so(func() {}, ShouldPanic, 1, 2, 3), "This assertion requires exactly 0 comparison values (you provided 3).")...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/strings_test.go
vendor/github.com/smartystreets/assertions/strings_test.go
package assertions func (this *AssertionsFixture) TestShouldStartWith() { this.fail(so("", ShouldStartWith), "This assertion requires exactly 1 comparison values (you provided 0).") this.fail(so("", ShouldStartWith, "asdf", "asdf"), "This assertion requires exactly 1 comparison values (you provided 2).") this.pass...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/time_test.go
vendor/github.com/smartystreets/assertions/time_test.go
package assertions import ( "fmt" "time" ) func (this *AssertionsFixture) TestShouldHappenBefore() { this.fail(so(0, ShouldHappenBefore), "This assertion requires exactly 1 comparison values (you provided 0).") this.fail(so(0, ShouldHappenBefore, 1, 2, 3), "This assertion requires exactly 1 comparison values (you...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/utilities_for_test.go
vendor/github.com/smartystreets/assertions/utilities_for_test.go
package assertions import ( "fmt" "strings" "testing" "github.com/smartystreets/gunit" ) /**************************************************************************/ func TestAssertionsFixture(t *testing.T) { gunit.Run(new(AssertionsFixture), t) } type AssertionsFixture struct { *gunit.Fixture } func (this ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/equality.go
vendor/github.com/smartystreets/assertions/equality.go
package assertions import ( "errors" "fmt" "math" "reflect" "strings" "github.com/smartystreets/assertions/internal/go-render/render" "github.com/smartystreets/assertions/internal/oglematchers" ) // ShouldEqual receives exactly two parameters and does an equality check // using the following semantics: // 1. ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/type_test.go
vendor/github.com/smartystreets/assertions/type_test.go
package assertions import ( "bytes" "errors" "io" "net/http" ) func (this *AssertionsFixture) TestShouldHaveSameTypeAs() { this.fail(so(1, ShouldHaveSameTypeAs), "This assertion requires exactly 1 comparison values (you provided 0).") this.fail(so(1, ShouldHaveSameTypeAs, 1, 2, 3), "This assertion requires exac...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/collections_test.go
vendor/github.com/smartystreets/assertions/collections_test.go
package assertions import ( "fmt" "time" ) func (this *AssertionsFixture) TestShouldContainKey() { this.fail(so(map[int]int{}, ShouldContainKey), "This assertion requires exactly 1 comparison values (you provided 0).") this.fail(so(map[int]int{}, ShouldContainKey, 1, 2, 3), "This assertion requires exactly 1 comp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/quantity.go
vendor/github.com/smartystreets/assertions/quantity.go
package assertions import ( "fmt" "github.com/smartystreets/assertions/internal/oglematchers" ) // ShouldBeGreaterThan receives exactly two parameters and ensures that the first is greater than the second. func ShouldBeGreaterThan(actual interface{}, expected ...interface{}) string { if fail := need(1, expected);...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/filter.go
vendor/github.com/smartystreets/assertions/filter.go
package assertions import "fmt" const ( success = "" needExactValues = "This assertion requires exactly %d comparison values (you provided %d)." needNonEmptyCollection = "This assertion requires at least 1 comparison value (you provided 0)." needFewerValues = "This assertion allows %d...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/quantity_test.go
vendor/github.com/smartystreets/assertions/quantity_test.go
package assertions func (this *AssertionsFixture) TestShouldBeGreaterThan() { this.fail(so(1, ShouldBeGreaterThan), "This assertion requires exactly 1 comparison values (you provided 0).") this.fail(so(1, ShouldBeGreaterThan, 0, 0), "This assertion requires exactly 1 comparison values (you provided 2).") this.pass...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/strings.go
vendor/github.com/smartystreets/assertions/strings.go
package assertions import ( "fmt" "reflect" "strings" ) // ShouldStartWith receives exactly 2 string parameters and ensures that the first starts with the second. func ShouldStartWith(actual interface{}, expected ...interface{}) string { if fail := need(1, expected); fail != success { return fail } value, va...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/equal_method_test.go
vendor/github.com/smartystreets/assertions/equal_method_test.go
package assertions import ( "testing" "github.com/smartystreets/gunit" ) func TestEqualityFixture(t *testing.T) { gunit.Run(new(EqualityFixture), t) } type EqualityFixture struct { *gunit.Fixture } func (this *EqualityFixture) TestNilNil() { spec := newEqualityMethodSpecification(nil, nil) this.So(spec.IsSat...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/serializer.go
vendor/github.com/smartystreets/assertions/serializer.go
package assertions import ( "encoding/json" "fmt" "github.com/smartystreets/assertions/internal/go-render/render" ) type Serializer interface { serialize(expected, actual interface{}, message string) string serializeDetailed(expected, actual interface{}, message string) string } type failureSerializer struct{}...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/messages.go
vendor/github.com/smartystreets/assertions/messages.go
package assertions const ( // equality shouldHaveBeenEqual = "Expected: '%v'\nActual: '%v'\n(Should be equal)" shouldNotHaveBeenEqual = "Expected '%v'\nto NOT equal '%v'\n(but it did)!" shouldHaveBeenEqualTypeMismatch = "Expected: '%v' (%T)\nActual: '%v' (%T)\n(Should be equal, type mis...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/type.go
vendor/github.com/smartystreets/assertions/type.go
package assertions import ( "fmt" "reflect" ) // ShouldHaveSameTypeAs receives exactly two parameters and compares their underlying types for equality. func ShouldHaveSameTypeAs(actual interface{}, expected ...interface{}) string { if fail := need(1, expected); fail != success { return fail } first := reflect...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/panic.go
vendor/github.com/smartystreets/assertions/panic.go
package assertions import "fmt" // ShouldPanic receives a void, niladic function and expects to recover a panic. func ShouldPanic(actual interface{}, expected ...interface{}) (message string) { if fail := need(0, expected); fail != success { return fail } action, _ := actual.(func()) if action == nil { mess...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/doc.go
vendor/github.com/smartystreets/assertions/doc.go
// Package assertions contains the implementations for all assertions which // are referenced in goconvey's `convey` package // (github.com/smartystreets/goconvey/convey) and gunit (github.com/smartystreets/gunit) // for use with the So(...) method. // They can also be used in traditional Go test functions and even in ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/equal_method.go
vendor/github.com/smartystreets/assertions/equal_method.go
package assertions import "reflect" type equalityMethodSpecification struct { a interface{} b interface{} aType reflect.Type bType reflect.Type equalMethod reflect.Value } func newEqualityMethodSpecification(a, b interface{}) *equalityMethodSpecification { return &equalityMethodSpecification{ a: a, b: b,...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/serializer_test.go
vendor/github.com/smartystreets/assertions/serializer_test.go
package assertions import ( "encoding/json" "fmt" "testing" ) func TestFailureSerializerCreatesSerializedVersionOfAssertionResult(t *testing.T) { thing1 := Thing1{"Hi"} thing2 := Thing2{"Bye"} message := "Super-hip failure message." serializer := newSerializer() actualResult := serializer.serialize(thing1, t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/equality_test.go
vendor/github.com/smartystreets/assertions/equality_test.go
package assertions import ( "fmt" "reflect" "time" ) func (this *AssertionsFixture) TestShouldEqual() { this.fail(so(1, ShouldEqual), "This assertion requires exactly 1 comparison values (you provided 0).") this.fail(so(1, ShouldEqual, 1, 2), "This assertion requires exactly 1 comparison values (you provided 2)....
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/doc_test.go
vendor/github.com/smartystreets/assertions/doc_test.go
package assertions import ( "bytes" "fmt" "reflect" "testing" ) func TestGoConveyModeAffectsSerializer(t *testing.T) { if reflect.TypeOf(serializer) != reflect.TypeOf(new(noopSerializer)) { t.Error("Expected noop serializer as default") } GoConveyMode(true) if reflect.TypeOf(serializer) != reflect.TypeOf(n...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/collections.go
vendor/github.com/smartystreets/assertions/collections.go
package assertions import ( "fmt" "reflect" "github.com/smartystreets/assertions/internal/oglematchers" ) // ShouldContain receives exactly two parameters. The first is a slice and the // second is a proposed member. Membership is determined using ShouldEqual. func ShouldContain(actual interface{}, expected ...in...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/go-render/render/render_test.go
vendor/github.com/smartystreets/assertions/internal/go-render/render/render_test.go
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package render import ( "bytes" "fmt" "reflect" "regexp" "runtime" "testing" "time" ) func init() { // For testing purposes, pointers will rende...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/go-render/render/render.go
vendor/github.com/smartystreets/assertions/internal/go-render/render/render.go
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package render import ( "bytes" "fmt" "reflect" "sort" "strconv" ) var builtinTypeMap = map[reflect.Kind]string{ reflect.Bool: "bool", refl...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/go-render/render/render_time.go
vendor/github.com/smartystreets/assertions/internal/go-render/render/render_time.go
package render import ( "reflect" "time" ) func renderTime(value reflect.Value) (string, bool) { if instant, ok := convertTime(value); !ok { return "", false } else if instant.IsZero() { return "0", true } else { return instant.String(), true } } func convertTime(value reflect.Value) (t time.Time, ok boo...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/any_of.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/any_of.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/equals.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/equals.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/not.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/not.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/less_than.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/less_than.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/contains.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/contains.go
// Copyright 2012 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/greater_than.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/greater_than.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/transform_description.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/transform_description.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/deep_equals.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/deep_equals.go
// Copyright 2012 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/matcher.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/matcher.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/less_or_equal.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/less_or_equal.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/internal/oglematchers/greater_or_equal.go
vendor/github.com/smartystreets/assertions/internal/oglematchers/greater_or_equal.go
// Copyright 2011 Aaron Jacobs. All Rights Reserved. // Author: aaronjjacobs@gmail.com (Aaron Jacobs) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/assertions/should/should.go
vendor/github.com/smartystreets/assertions/should/should.go
// package should is simply a rewording of the assertion // functions in the assertions package. package should import "github.com/smartystreets/assertions" var ( Equal = assertions.ShouldEqual NotEqual = assertions.ShouldNotEqual AlmostEqual = assertions.ShouldAlmostEqual NotAlmostEqual = asser...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/runner_test.go
vendor/github.com/smartystreets/gunit/runner_test.go
package gunit import ( "testing" "github.com/smartystreets/assertions" "github.com/smartystreets/assertions/should" ) /**************************************************************************/ /**************************************************************************/ func TestRunnerEndsFatallyIfFixtureIsInco...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/fixture.go
vendor/github.com/smartystreets/gunit/fixture.go
package gunit import ( "bytes" "fmt" "reflect" "runtime" "strings" ) // Fixture keeps track of test status (failed, passed, skipped) and // handles custom logging for xUnit style tests as an embedded field. // The Fixture manages an instance of *testing.T. Certain methods // defined herein merely forward to call...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/test_case.go
vendor/github.com/smartystreets/gunit/test_case.go
package gunit import ( "reflect" "testing" "github.com/smartystreets/gunit/scan" ) type testCase struct { methodIndex int description string skipped bool long bool parallel bool setup int teardown int innerFixture *Fixture outerFixtureType reflect.Type outerFixture ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/t.go
vendor/github.com/smartystreets/gunit/t.go
package gunit // testingT represents the functional subset from *testing.T needed by Fixture. type testingT interface { Name() string Log(args ...interface{}) Fail() Failed() bool Fatalf(format string, args ...interface{}) }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/fixture_runner.go
vendor/github.com/smartystreets/gunit/fixture_runner.go
package gunit import ( "reflect" "testing" "github.com/smartystreets/gunit/scan" ) func newFixtureRunner(fixture interface{}, t *testing.T, parallel bool, positions scan.TestCasePositions) *fixtureRunner { return &fixtureRunner{ parallel: parallel, setup: -1, teardown: -1, outerT: t, f...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/fixture_test.go
vendor/github.com/smartystreets/gunit/fixture_test.go
package gunit import ( "bytes" "fmt" "strings" "testing" "github.com/smartystreets/assertions/should" ) func TestFinalizeAfterNoActions(t *testing.T) { test := Setup(false) test.fixture.finalize() if test.fakeT.failed { t.Error("Fake should not have been marked as failed.") } if test.out.Len() > 0 { ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/runner.go
vendor/github.com/smartystreets/gunit/runner.go
package gunit import ( "reflect" "runtime" "testing" "github.com/smartystreets/gunit/scan" ) // Run receives an instance of a struct that embeds *Fixture. // The struct definition may include Setup*, Teardown*, and Test* // methods which will be run as an xUnit-style test fixture. func Run(fixture interface{}, t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/fixture_method_info.go
vendor/github.com/smartystreets/gunit/fixture_method_info.go
package gunit import "strings" type fixtureMethodInfo struct { name string isSetup bool isTeardown bool isTest bool isFocusTest bool isLongTest bool isSkippedTest bool } func (this *fixtureRunner) newFixtureMethodInfo(name string) fixtureMethodInfo { var ( isSetup = ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/failure_report.go
vendor/github.com/smartystreets/gunit/failure_report.go
package gunit import ( "bytes" "fmt" "runtime" "strings" "github.com/smartystreets/gunit/scan" ) type failureReport struct { Stack []string Method string Fixture string Package string Failure string } func newFailureReport(failure string) string { report := &failureReport{Failure: failure} repor...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/doc.go
vendor/github.com/smartystreets/gunit/doc.go
// Package gunit provides "testing" package hooks and convenience // functions for writing tests in an xUnit style. // See the README file and the examples folder for examples. package gunit
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/parser_test_inputs_test.go
vendor/github.com/smartystreets/gunit/scan/parser_test_inputs_test.go
package scan const comprehensiveTestCode = `package parse import ( "github.com/smartystreets/assertions/should" "github.com/smartystreets/gunit" ) type BowlingGameScoringTests struct { *gunit.Fixture game *Game } func (self *BowlingGameScoringTests) SetupTheGame() { self.game = NewGame() } func (self *Bowlin...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/2_fixture_validator.go
vendor/github.com/smartystreets/gunit/scan/2_fixture_validator.go
package scan import "go/ast" type fixtureValidator struct { Parent *fixtureCollector FixtureName string } func (this *fixtureValidator) Visit(node ast.Node) ast.Visitor { // We start at a TypeSpec and look for an embedded pointer field: `*gunit.Fixture`. field, isField := node.(*ast.Field) if !isField { ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/fixture.go
vendor/github.com/smartystreets/gunit/scan/fixture.go
package scan type fixtureInfo struct { Filename string StructName string TestCases []*testCaseInfo } type testCaseInfo struct { CharacterPosition int LineNumber int Name string }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/scan.go
vendor/github.com/smartystreets/gunit/scan/scan.go
package scan import ( "fmt" "io/ioutil" "strings" ) type TestCasePositions map[string]string func LocateTestCases(filename string) TestCasePositions { return gatherTestCaseLineNumbers(parseFixtures(filename)) } func gatherTestCaseLineNumbers(fixtures []*fixtureInfo) TestCasePositions { positions := make(TestCa...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/0_parser.go
vendor/github.com/smartystreets/gunit/scan/0_parser.go
package scan import ( "bytes" "errors" "go/ast" "go/parser" "go/token" ) ////////////////////////////////////////////////////////////////////////////// func scanForFixtures(code string) ([]*fixtureInfo, error) { fileset := token.NewFileSet() file, err := parser.ParseFile(fileset, "", code, 0) if err != nil {...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/parser_test.go
vendor/github.com/smartystreets/gunit/scan/parser_test.go
package scan import ( "testing" "github.com/smartystreets/assertions" "github.com/smartystreets/assertions/should" ) ////////////////////////////////////////////////////////////////////////////// func TestParseFileWithValidFixturesAndConstructs(t *testing.T) { test := &FixtureParsingFixture{t: t, input: compreh...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/3_method_finder.go
vendor/github.com/smartystreets/gunit/scan/3_method_finder.go
package scan import ( "go/ast" "strings" ) type fixtureMethodFinder struct { fixtures map[string]*fixtureInfo } func newFixtureMethodFinder(fixtures map[string]*fixtureInfo) *fixtureMethodFinder { return &fixtureMethodFinder{fixtures: fixtures} } func (this *fixtureMethodFinder) Find(file *ast.File) map[string]...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/smartystreets/gunit/scan/1_fixture_collector.go
vendor/github.com/smartystreets/gunit/scan/1_fixture_collector.go
package scan import "go/ast" type fixtureCollector struct { candidates map[string]*fixtureInfo fixtures map[string]*fixtureInfo } func newFixtureCollector() *fixtureCollector { return &fixtureCollector{ candidates: make(map[string]*fixtureInfo), fixtures: make(map[string]*fixtureInfo), } } func (this *f...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/pmezard/go-difflib/difflib/difflib.go
vendor/github.com/pmezard/go-difflib/difflib/difflib.go
// Package difflib is a partial port of Python difflib module. // // It provides tools to compare sequences of strings and generate textual diffs. // // The following class and functions have been ported: // // - SequenceMatcher // // - unified_diff // // - context_diff // // Getting unified diffs was the main goal of ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/pmezard/go-difflib/difflib/difflib_test.go
vendor/github.com/pmezard/go-difflib/difflib/difflib_test.go
package difflib import ( "bytes" "fmt" "math" "reflect" "strings" "testing" ) func assertAlmostEqual(t *testing.T, a, b float64, places int) { if math.Abs(a-b) > math.Pow10(-places) { t.Errorf("%.7f != %.7f", a, b) } } func assertEqual(t *testing.T, a, b interface{}) { if !reflect.DeepEqual(a, b) { t.Er...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/k0kubun/colorstring/colorstring_test.go
vendor/github.com/k0kubun/colorstring/colorstring_test.go
package colorstring import ( "testing" ) func TestColor(t *testing.T) { cases := []struct { Input, Output string }{ { Input: "foo", Output: "foo", }, { Input: "[blue]foo", Output: "\033[34mfoo\033[0m", }, { Input: "foo[blue]foo", Output: "foo\033[34mfoo\033[0m", }, { Inpu...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/k0kubun/colorstring/colorstring.go
vendor/github.com/k0kubun/colorstring/colorstring.go
// colorstring provides functions for colorizing strings for terminal // output. package colorstring import ( "bytes" "fmt" "regexp" ) // Color colorizes your strings using the default settings. // // Strings given to Color should use the syntax `[color]` to specify the // color for text following. For example: `[...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/common_test.go
vendor/github.com/davecgh/go-spew/spew/common_test.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/internalunsafe_test.go
vendor/github.com/davecgh/go-spew/spew/internalunsafe_test.go
// Copyright (c) 2013-2016 Dave Collins <dave@davec.name> // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // THE SOFTWARE IS PROVIDED "AS IS" AND THE ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/config.go
vendor/github.com/davecgh/go-spew/spew/config.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/format.go
vendor/github.com/davecgh/go-spew/spew/format.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/spew_test.go
vendor/github.com/davecgh/go-spew/spew/spew_test.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/dumpnocgo_test.go
vendor/github.com/davecgh/go-spew/spew/dumpnocgo_test.go
// Copyright (c) 2013 Dave Collins <dave@davec.name> // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/dump_test.go
vendor/github.com/davecgh/go-spew/spew/dump_test.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
true
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/example_test.go
vendor/github.com/davecgh/go-spew/spew/example_test.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/bypass.go
vendor/github.com/davecgh/go-spew/spew/bypass.go
// Copyright (c) 2015-2016 Dave Collins <dave@davec.name> // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go
vendor/github.com/davecgh/go-spew/spew/bypasssafe.go
// Copyright (c) 2015-2016 Dave Collins <dave@davec.name> // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/format_test.go
vendor/github.com/davecgh/go-spew/spew/format_test.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
true
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/internal_test.go
vendor/github.com/davecgh/go-spew/spew/internal_test.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/doc.go
vendor/github.com/davecgh/go-spew/spew/doc.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/dump.go
vendor/github.com/davecgh/go-spew/spew/dump.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/spew.go
vendor/github.com/davecgh/go-spew/spew/spew.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/dumpcgo_test.go
vendor/github.com/davecgh/go-spew/spew/dumpcgo_test.go
// Copyright (c) 2013-2016 Dave Collins <dave@davec.name> // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/common.go
vendor/github.com/davecgh/go-spew/spew/common.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/davecgh/go-spew/spew/testdata/dumpcgo.go
vendor/github.com/davecgh/go-spew/spew/testdata/dumpcgo.go
// Copyright (c) 2013 Dave Collins <dave@davec.name> // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/xeipuuv/gojsonreference/reference_test.go
vendor/github.com/xeipuuv/gojsonreference/reference_test.go
// Copyright 2015 xeipuuv ( https://github.com/xeipuuv ) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/xeipuuv/gojsonreference/reference.go
vendor/github.com/xeipuuv/gojsonreference/reference.go
// Copyright 2015 xeipuuv ( https://github.com/xeipuuv ) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/xeipuuv/gojsonschema/schemaType.go
vendor/github.com/xeipuuv/gojsonschema/schemaType.go
// Copyright 2015 xeipuuv ( https://github.com/xeipuuv ) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/xeipuuv/gojsonschema/jsonschema_test.go
vendor/github.com/xeipuuv/gojsonschema/jsonschema_test.go
// Copyright 2017 johandorland ( https://github.com/johandorland ) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/xeipuuv/gojsonschema/jsonLoader.go
vendor/github.com/xeipuuv/gojsonschema/jsonLoader.go
// Copyright 2015 xeipuuv ( https://github.com/xeipuuv ) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false