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/golang/protobuf/ptypes/timestamp.go
vendor/github.com/golang/protobuf/ptypes/timestamp.go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2016 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/any_test.go
vendor/github.com/golang/protobuf/ptypes/any_test.go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2016 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/any.go
vendor/github.com/golang/protobuf/ptypes/any.go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2016 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/timestamp_test.go
vendor/github.com/golang/protobuf/ptypes/timestamp_test.go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2016 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/duration_test.go
vendor/github.com/golang/protobuf/ptypes/duration_test.go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2016 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/doc.go
vendor/github.com/golang/protobuf/ptypes/doc.go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2016 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/duration.go
vendor/github.com/golang/protobuf/ptypes/duration.go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2016 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go
vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/protobuf/timestamp.proto /* Package timestamp is a generated protocol buffer package. It is generated from these files: google/protobuf/timestamp.proto It has these top-level messages: Timestamp */ package timestamp import proto "github.com/golang...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go
vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/protobuf/duration.proto /* Package duration is a generated protocol buffer package. It is generated from these files: google/protobuf/duration.proto It has these top-level messages: Duration */ package duration import proto "github.com/golang/prot...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go
vendor/github.com/golang/protobuf/ptypes/any/any.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/protobuf/any.proto /* Package any is a generated protocol buffer package. It is generated from these files: google/protobuf/any.proto It has these top-level messages: Any */ package any import proto "github.com/golang/protobuf/proto" import fmt "f...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/gddo/httputil/header/header.go
vendor/github.com/golang/gddo/httputil/header/header.go
// Copyright 2013 The Go Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd. // Package header provides functions for parsing HTTP headers. package header import ( "net...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/golang/gddo/httputil/header/header_test.go
vendor/github.com/golang/gddo/httputil/header/header_test.go
// Copyright 2013 The Go Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd. package header import ( "net/http" "testing" "time" "github.com/google/go-cmp/cmp" ) v...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/form.go
vendor/github.com/ajg/form/form.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package form implements encoding and decoding of application/x-www-form-urlencoded data. package form const ( implicitKey = "_" omittedKey = "-" defa...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/form_test.go
vendor/github.com/ajg/form/form_test.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "encoding" "fmt" "net/url" "time" ) type Struct struct { B bool I int `form:"life"` F float64 C complex128 R rune `form:...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/node.go
vendor/github.com/ajg/form/node.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "net/url" "strconv" "strings" ) type node map[string]interface{} func (n node) values(d, e rune) url.Values { vs := url.Values{} ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/node_test.go
vendor/github.com/ajg/form/node_test.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "reflect" "testing" ) type foo int type bar interface { void() } type qux struct{} type zee []bar func TestCanIndexOrdinally(t *te...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/encode.go
vendor/github.com/ajg/form/encode.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "encoding" "errors" "fmt" "io" "net/url" "reflect" "strconv" "strings" "time" ) // NewEncoder returns a new form Encoder. fun...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/encode_test.go
vendor/github.com/ajg/form/encode_test.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "bytes" "reflect" "testing" ) func TestEncodeToString(t *testing.T) { for _, c := range testCases(encOnly) { if s, err := Encode...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/decode.go
vendor/github.com/ajg/form/decode.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "fmt" "io" "io/ioutil" "net/url" "reflect" "strconv" "time" ) // NewDecoder returns a new form Decoder. func NewDecoder(r io.Re...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/ajg/form/decode_test.go
vendor/github.com/ajg/form/decode_test.go
// Copyright 2014 Alvaro J. Genial. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "net/url" "reflect" "strings" "testing" ) func TestDecodeString(t *testing.T) { for _, c := range testCases(decOnly) { if err :...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/moul/http2curl/http2curl_test.go
vendor/github.com/moul/http2curl/http2curl_test.go
package http2curl import ( "bytes" "fmt" "io/ioutil" "net/http" "net/url" "testing" . "github.com/smartystreets/goconvey/convey" ) func ExampleGetCurlCommand() { form := url.Values{} form.Add("age", "10") form.Add("name", "Hudson") body := form.Encode() req, _ := http.NewRequest(http.MethodPost, "http:/...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/moul/http2curl/http2curl.go
vendor/github.com/moul/http2curl/http2curl.go
package http2curl import ( "bytes" "fmt" "io" "io/ioutil" "net/http" "sort" "strings" ) // CurlCommand contains exec.Command compatible slice + helpers type CurlCommand struct { slice []string } // append appends a string to the CurlCommand func (c *CurlCommand) append(newSlice ...string) { c.slice = append...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/writer_test.go
vendor/github.com/go-ozzo/ozzo-routing/writer_test.go
package routing import ( "net/http/httptest" "testing" "github.com/stretchr/testify/assert" ) func TestDefaultDataWriter(t *testing.T) { res := httptest.NewRecorder() err := DefaultDataWriter.Write(res, "abc") assert.Nil(t, err) assert.Equal(t, "abc", res.Body.String()) res = httptest.NewRecorder() err = D...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/error.go
vendor/github.com/go-ozzo/ozzo-routing/error.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import "net/http" // HTTPError represents an HTTP error with HTTP status code and error message type HTTPError interface { error // StatusCode re...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/group.go
vendor/github.com/go-ozzo/ozzo-routing/group.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import "strings" // RouteGroup represents a group of routes that share the same path prefix. type RouteGroup struct { prefix string router *R...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/route_test.go
vendor/github.com/go-ozzo/ozzo-routing/route_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import ( "bytes" "fmt" "testing" "github.com/stretchr/testify/assert" ) type mockStore struct { *store data map[string]interface{} } func n...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/group_test.go
vendor/github.com/go-ozzo/ozzo-routing/group_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import ( "bytes" "testing" "github.com/stretchr/testify/assert" ) func TestRouteGroupTo(t *testing.T) { router := New() for _, method := rang...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/error_test.go
vendor/github.com/go-ozzo/ozzo-routing/error_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import ( "encoding/json" "net/http" "testing" "github.com/stretchr/testify/assert" ) func TestNewHttpError(t *testing.T) { e := NewHTTPError(...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/context_test.go
vendor/github.com/go-ozzo/ozzo-routing/context_test.go
package routing import ( "errors" "fmt" "net/http" "net/http/httptest" "strings" "testing" "github.com/stretchr/testify/assert" ) func TestContextParam(t *testing.T) { c := NewContext(nil, nil) values := []string{"a", "b", "c", "d"} c.pvalues = values c.pnames = nil assert.Equal(t, "", c.Param("")) ass...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/writer.go
vendor/github.com/go-ozzo/ozzo-routing/writer.go
package routing import ( "fmt" "net/http" ) // DataWriter is used by Context.Write() to write arbitrary data into an HTTP response. type DataWriter interface { // SetHeader sets necessary response headers. SetHeader(http.ResponseWriter) // Write writes the given data into the response. Write(http.ResponseWriter...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/reader.go
vendor/github.com/go-ozzo/ozzo-routing/reader.go
package routing import ( "encoding" "encoding/json" "encoding/xml" "errors" "net/http" "reflect" "strconv" ) // MIME types used when doing request data reading and response data writing. const ( MIME_JSON = "application/json" MIME_XML = "application/xml" MIME_XML2 = "text/xml"...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/router.go
vendor/github.com/go-ozzo/ozzo-routing/router.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package routing provides high performance and powerful HTTP routing capabilities. package routing import ( "net/http" "net/url" "sort" "strings" "sync" ) t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/reader_test.go
vendor/github.com/go-ozzo/ozzo-routing/reader_test.go
package routing import ( "bytes" "net/http" "testing" "github.com/stretchr/testify/assert" ) type FA struct { A1 string A2 int } type FB struct { B1 string B2 bool B3 float64 } func TestReadForm(t *testing.T) { var a struct { X1 string `form:"x1"` FA X2 int B *FB FB `form:"c"` E FB `form:"e...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/store_test.go
vendor/github.com/go-ozzo/ozzo-routing/store_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) type storeTestEntry struct { key, data string params int } func TestStore...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/example_test.go
vendor/github.com/go-ozzo/ozzo-routing/example_test.go
package routing_test import ( "github.com/go-ozzo/ozzo-routing" "github.com/go-ozzo/ozzo-routing/access" "github.com/go-ozzo/ozzo-routing/content" "github.com/go-ozzo/ozzo-routing/fault" "github.com/go-ozzo/ozzo-routing/file" "github.com/go-ozzo/ozzo-routing/slash" "log" "net/http" ) func Example() { router ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/store.go
vendor/github.com/go-ozzo/ozzo-routing/store.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import ( "fmt" "math" "regexp" "strings" ) // store is a radix tree that supports storing data with parametric keys and retrieving them back wi...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/context.go
vendor/github.com/go-ozzo/ozzo-routing/context.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import ( "net/http" ) // Context represents the contextual data and environment while processing an incoming HTTP request. type Context struct { ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/router_test.go
vendor/github.com/go-ozzo/ozzo-routing/router_test.go
package routing import ( "errors" "fmt" "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" "testing" ) func TestRouterNotFound(t *testing.T) { r := New() h := func(c *Context) error { fmt.Fprint(c.Response, "ok") return nil } r.Get("/users", h) r.Post("/users", h) r.NotFound(MethodNot...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/route.go
vendor/github.com/go-ozzo/ozzo-routing/route.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package routing import ( "fmt" "net/url" "strings" ) // Route represents a URL path pattern that can be used to match requested URLs. type Route struct { group...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/content/language_test.go
vendor/github.com/go-ozzo/ozzo-routing/content/language_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package content import ( "net/http" "net/http/httptest" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/assert" ) func TestLanguageN...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/content/negotiator.go
vendor/github.com/go-ozzo/ozzo-routing/content/negotiator.go
// Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package content import ( "net/http" "strconv" "strings" ) type AcceptRange struct { Type string Subtype string Weight float64 Parameters map[string]string raw string // the raw string f...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/content/type_test.go
vendor/github.com/go-ozzo/ozzo-routing/content/type_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package content import ( "net/http" "net/http/httptest" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/assert" ) func TestJSONForma...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/content/language.go
vendor/github.com/go-ozzo/ozzo-routing/content/language.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package content import ( "net/http" "github.com/go-ozzo/ozzo-routing" "github.com/golang/gddo/httputil/header" ) // Language is the key used to store and retri...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/content/negotiator_test.go
vendor/github.com/go-ozzo/ozzo-routing/content/negotiator_test.go
// Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package content import ( "net/http" "testing" "github.com/stretchr/testify/assert" ) func TestContentNegotiation(t *testing.T) { header := http.Header{} header.Set("Accept", "application/json;q=1;v=1") req ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/content/type.go
vendor/github.com/go-ozzo/ozzo-routing/content/type.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package content provides content negotiation handlers for the ozzo routing package. package content import ( "encoding/json" "encoding/xml" "net/http" "gith...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/file/server_test.go
vendor/github.com/go-ozzo/ozzo-routing/file/server_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package file import ( "net/http" "net/http/httptest" "strings" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/assert" ) func TestP...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/file/server.go
vendor/github.com/go-ozzo/ozzo-routing/file/server.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package file provides handlers that serve static files for the ozzo routing package. package file import ( "net/http" "os" "path/filepath" "sort" "strings" ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/access/logger_test.go
vendor/github.com/go-ozzo/ozzo-routing/access/logger_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package access import ( "bytes" "errors" "fmt" "net/http" "net/http/httptest" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/asse...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/access/logger.go
vendor/github.com/go-ozzo/ozzo-routing/access/logger.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package access provides an access logging handler for the ozzo routing package. package access import ( "fmt" "net/http" "strings" "time" "github.com/go-oz...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/fault/panic_test.go
vendor/github.com/go-ozzo/ozzo-routing/fault/panic_test.go
package fault import ( "bytes" "net/http" "net/http/httptest" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/assert" ) func TestPanicHandler(t *testing.T) { var buf bytes.Buffer h := PanicHandler(getLogger(&buf)) res := httptest.NewRecorder() req, _ := http.NewRequest("GET", "/us...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/fault/error.go
vendor/github.com/go-ozzo/ozzo-routing/fault/error.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package fault provides a panic and error handler for the ozzo routing package. package fault import ( "net/http" "github.com/go-ozzo/ozzo-routing" ) // Error...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/fault/recovery.go
vendor/github.com/go-ozzo/ozzo-routing/fault/recovery.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package fault provides a panic and error handler for the ozzo routing package. package fault import "github.com/go-ozzo/ozzo-routing" type ( // LogFunc logs a ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/fault/error_test.go
vendor/github.com/go-ozzo/ozzo-routing/fault/error_test.go
package fault import ( "bytes" "errors" "net/http" "net/http/httptest" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/assert" ) func TestErrorHandler(t *testing.T) { var buf bytes.Buffer h := ErrorHandler(getLogger(&buf)) res := httptest.NewRecorder() req, _ := http.NewRequest("...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/fault/recovery_test.go
vendor/github.com/go-ozzo/ozzo-routing/fault/recovery_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package fault import ( "bytes" "errors" "fmt" "net/http" "net/http/httptest" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/asser...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/fault/panic.go
vendor/github.com/go-ozzo/ozzo-routing/fault/panic.go
package fault import ( "bytes" "fmt" "runtime" "github.com/go-ozzo/ozzo-routing" ) // PanicHandler returns a handler that recovers from panics happened in the handlers following this one. // When a panic is recovered, it will be converted into an error and returned to the parent handlers. // // A log function ca...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/slash/remover_test.go
vendor/github.com/go-ozzo/ozzo-routing/slash/remover_test.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package slash import ( "net/http" "net/http/httptest" "testing" "github.com/go-ozzo/ozzo-routing" "github.com/stretchr/testify/assert" ) func TestRemover(t *...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/go-ozzo/ozzo-routing/slash/remover.go
vendor/github.com/go-ozzo/ozzo-routing/slash/remover.go
// Copyright 2016 Qiang Xue. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package slash provides a trailing slash remover handler for the ozzo routing package. package slash import ( "net/http" "strings" "github.com/go-ozzo/ozzo-ro...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/binder_test.go
vendor/github.com/gavv/httpexpect/binder_test.go
package httpexpect import ( "bufio" "crypto/tls" "io/ioutil" "net/http" "strings" "testing" "github.com/stretchr/testify/assert" "github.com/valyala/fasthttp" ) type mockHandler struct { t *testing.T https bool http10 bool chunked bool } func (c *mockHandler) ServeHTTP(w http.ResponseWriter, re...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/request.go
vendor/github.com/gavv/httpexpect/request.go
package httpexpect import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "mime/multipart" "net/http" "net/url" "os" "reflect" "sort" "strings" "time" "github.com/ajg/form" "github.com/fatih/structs" "github.com/gavv/monotime" "github.com/google/go-querystring/query" "github.com/imkira/go-interpol"...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/expect_test.go
vendor/github.com/gavv/httpexpect/expect_test.go
package httpexpect import ( "bufio" "crypto/tls" "encoding/json" "errors" "io" "io/ioutil" "net/http" "net/http/httptest" "os" "path" "strings" "testing" "time" "github.com/stretchr/testify/assert" "github.com/valyala/fasthttp" "github.com/valyala/fasthttp/fasthttpadaptor" ) func TestExpectMethods(t ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/match.go
vendor/github.com/gavv/httpexpect/match.go
package httpexpect import ( "reflect" ) // Match provides methods to inspect attached regexp match results. type Match struct { chain chain submatches []string names map[string]int } // NewMatch returns a new Match object given a reporter used to report // failures and submatches to be inspected. // //...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/expect.go
vendor/github.com/gavv/httpexpect/expect.go
// Package httpexpect helps with end-to-end HTTP and REST API testing. // // Usage examples // // See example directory: // - https://godoc.org/github.com/gavv/httpexpect/_examples // - https://github.com/gavv/httpexpect/tree/master/_examples // // Communication mode // // There are two common ways to test API with h...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/boolean_test.go
vendor/github.com/gavv/httpexpect/boolean_test.go
package httpexpect import ( "testing" "github.com/stretchr/testify/assert" ) func TestBooleanFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &Boolean{chain, false} value.chain.assertFailed(t) value.Path("$").chain.assertFailed(t) value.Schema("") value.Equal(fa...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/cookie_test.go
vendor/github.com/gavv/httpexpect/cookie_test.go
package httpexpect import ( "net/http" "testing" "time" "github.com/stretchr/testify/assert" ) func TestCookieFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &Cookie{chain, nil} assert.True(t, value.Raw() == nil) assert.True(t, value.Name() != nil) assert.True(t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/match_test.go
vendor/github.com/gavv/httpexpect/match_test.go
package httpexpect import ( "testing" "github.com/stretchr/testify/assert" ) func TestMatchFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &Match{chain, nil, nil} value.chain.assertFailed(t) assert.False(t, value.Length() == nil) assert.False(t, value.Index(0) ==...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/response.go
vendor/github.com/gavv/httpexpect/response.go
package httpexpect import ( "bytes" "encoding/json" "io/ioutil" "mime" "net/http" "reflect" "regexp" "strconv" "strings" "time" "github.com/ajg/form" ) // StatusRange is enum for response status ranges. type StatusRange int const ( // Status1xx defines "Informational" status codes. Status1xx StatusRang...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/value_test.go
vendor/github.com/gavv/httpexpect/value_test.go
package httpexpect import ( "encoding/json" "io/ioutil" "os" "testing" "github.com/stretchr/testify/assert" ) func TestValueFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &Value{chain, nil} value.chain.assertFailed(t) value.Path("$").chain.assertFailed(t) val...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/object_test.go
vendor/github.com/gavv/httpexpect/object_test.go
package httpexpect import ( "testing" "github.com/stretchr/testify/assert" ) func TestObjectFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &Object{chain, nil} value.chain.assertFailed(t) value.Path("$").chain.assertFailed(t) value.Schema("") assert.False(t, va...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/chain_test.go
vendor/github.com/gavv/httpexpect/chain_test.go
package httpexpect import ( "testing" "github.com/stretchr/testify/assert" ) func TestChainFail(t *testing.T) { chain := makeChain(newMockReporter(t)) assert.False(t, chain.failed()) chain.fail("fail") assert.True(t, chain.failed()) chain.fail("fail") assert.True(t, chain.failed()) } func TestChainCopy(t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/boolean.go
vendor/github.com/gavv/httpexpect/boolean.go
package httpexpect // Boolean provides methods to inspect attached bool value // (Go representation of JSON boolean). type Boolean struct { chain chain value bool } // NewBoolean returns a new Boolean given a reporter used to report // failures and value to be inspected. // // reporter should not be nil. // // Exam...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/array.go
vendor/github.com/gavv/httpexpect/array.go
package httpexpect import ( "reflect" ) // Array provides methods to inspect attached []interface{} object // (Go representation of JSON array). type Array struct { chain chain value []interface{} } // NewArray returns a new Array given a reporter used to report failures // and value to be inspected. // // Both r...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/datetime.go
vendor/github.com/gavv/httpexpect/datetime.go
package httpexpect import ( "time" ) // DateTime provides methods to inspect attached time.Time value. type DateTime struct { chain chain value time.Time } // NewDateTime returns a new DateTime object given a reporter used to report // failures and time.Time value to be inspected. // // reporter should not be nil...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/printer.go
vendor/github.com/gavv/httpexpect/printer.go
package httpexpect import ( "net/http" "net/http/httputil" "strings" "time" "github.com/moul/http2curl" ) // CompactPrinter implements Printer. It prints requests in compact form. type CompactPrinter struct { logger Logger } // NewCompactPrinter returns a new CompactPrinter given a logger. func NewCompactPrin...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/helpers_test.go
vendor/github.com/gavv/httpexpect/helpers_test.go
package httpexpect import ( "testing" "github.com/stretchr/testify/assert" ) func TestCanonNumber(t *testing.T) { type ( myInt int ) chain := makeChain(newMockReporter(t)) d1, ok := canonNumber(&chain, 123) assert.True(t, ok) assert.Equal(t, 123.0, d1) chain.assertOK(t) chain.reset() d2, ok := canonN...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/reporter.go
vendor/github.com/gavv/httpexpect/reporter.go
package httpexpect import ( "fmt" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) // AssertReporter implements Reporter interface using `testify/assert' // package. Failures are non-fatal with this reporter. type AssertReporter struct { backend *assert.Assertions } // NewAssertRepor...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/mocks_test.go
vendor/github.com/gavv/httpexpect/mocks_test.go
package httpexpect import ( "net/http" "testing" ) type mockClient struct { req *http.Request resp http.Response err error } func (c *mockClient) Do(req *http.Request) (*http.Response, error) { c.req = req if c.err == nil { c.resp.Header = c.req.Header c.resp.Body = c.req.Body return &c.resp, nil } ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/array_test.go
vendor/github.com/gavv/httpexpect/array_test.go
package httpexpect import ( "testing" "github.com/stretchr/testify/assert" ) func TestArrayFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &Array{chain, nil} value.chain.assertFailed(t) value.Path("$").chain.assertFailed(t) value.Schema("") assert.False(t, valu...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/chain.go
vendor/github.com/gavv/httpexpect/chain.go
package httpexpect type chain struct { reporter Reporter failbit bool } func makeChain(reporter Reporter) chain { return chain{reporter, false} } func (c *chain) failed() bool { return c.failbit } func (c *chain) fail(message string, args ...interface{}) { if c.failbit { return } c.failbit = true c.repor...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/cookie.go
vendor/github.com/gavv/httpexpect/cookie.go
package httpexpect import ( "net/http" "time" ) // Cookie provides methods to inspect attached http.Cookie value. type Cookie struct { chain chain value *http.Cookie } // NewCookie returns a new Cookie object given a reporter used to report // failures and cookie value to be inspected. // // reporter and value s...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/number.go
vendor/github.com/gavv/httpexpect/number.go
package httpexpect import ( "math" ) // Number provides methods to inspect attached float64 value // (Go representation of JSON number). type Number struct { chain chain value float64 } // NewNumber returns a new Number given a reporter used to report // failures and value to be inspected. // // reporter should n...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/value.go
vendor/github.com/gavv/httpexpect/value.go
package httpexpect import ( "reflect" ) // Value provides methods to inspect attached interface{} object // (Go representation of arbitrary JSON value) and cast it to // concrete type. type Value struct { chain chain value interface{} } // NewValue returns a new Value given a reporter used to report failures // a...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/string.go
vendor/github.com/gavv/httpexpect/string.go
package httpexpect import ( "net/http" "regexp" "strings" "time" ) // String provides methods to inspect attached string value // (Go representation of JSON string). type String struct { chain chain value string } // NewString returns a new String given a reporter used to report failures // and value to be ins...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/object.go
vendor/github.com/gavv/httpexpect/object.go
package httpexpect import ( "reflect" ) // Object provides methods to inspect attached map[string]interface{} object // (Go representation of JSON object). type Object struct { chain chain value map[string]interface{} } // NewObject returns a new Object given a reporter used to report failures // and value to be ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/datetime_test.go
vendor/github.com/gavv/httpexpect/datetime_test.go
package httpexpect import ( "testing" "time" "github.com/stretchr/testify/assert" ) func TestDateTimeFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") ts := time.Unix(0, 0) value := &DateTime{chain, ts} value.chain.assertFailed(t) value.Equal(ts) value.NotEqual(ts) valu...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/number_test.go
vendor/github.com/gavv/httpexpect/number_test.go
package httpexpect import ( "math" "testing" "github.com/stretchr/testify/assert" ) func TestNumberFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &Number{chain, 0} value.chain.assertFailed(t) value.Path("$").chain.assertFailed(t) value.Schema("") value.Equal(...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/request_test.go
vendor/github.com/gavv/httpexpect/request_test.go
package httpexpect import ( "bytes" "encoding/json" "errors" "io/ioutil" "mime" "mime/multipart" "net/http" "os" "strings" "testing" "github.com/stretchr/testify/assert" ) func TestRequestFailed(t *testing.T) { client := &mockClient{} chain := makeChain(newMockReporter(t)) chain.fail("fail") config...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
true
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/printer_test.go
vendor/github.com/gavv/httpexpect/printer_test.go
package httpexpect import ( "bytes" "io/ioutil" "net/http" "testing" ) func TestCompactPrinter(t *testing.T) { printer := NewCompactPrinter(t) body1 := bytes.NewBufferString("body1") body2 := bytes.NewBufferString("body2") req1, _ := http.NewRequest("GET", "http://example.com", body1) req2, _ := http.NewRe...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/binder.go
vendor/github.com/gavv/httpexpect/binder.go
package httpexpect import ( "bytes" "crypto/tls" "fmt" "io/ioutil" "net" "net/http" "net/http/httptest" "github.com/valyala/fasthttp" ) // Binder implements networkless http.RoundTripper attached directly to // http.Handler. // // Binder emulates network communication by invoking given http.Handler // direct...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/helpers.go
vendor/github.com/gavv/httpexpect/helpers.go
package httpexpect import ( "encoding/json" "fmt" "reflect" "regexp" "github.com/xeipuuv/gojsonschema" "github.com/yalp/jsonpath" "github.com/yudai/gojsondiff" "github.com/yudai/gojsondiff/formatter" ) func toString(str interface{}) (s string, ok bool) { ok = true defer func() { if err := recover(); err ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/response_test.go
vendor/github.com/gavv/httpexpect/response_test.go
package httpexpect import ( "bytes" "io/ioutil" "net/http" "strings" "testing" "time" "github.com/stretchr/testify/assert" ) func TestResponseFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") resp := &Response{chain, nil, nil, nil, 0} resp.chain.assertFailed(t) assert.F...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/httpexpect/string_test.go
vendor/github.com/gavv/httpexpect/string_test.go
package httpexpect import ( "testing" "time" "github.com/stretchr/testify/assert" ) func TestStringFailed(t *testing.T) { chain := makeChain(newMockReporter(t)) chain.fail("fail") value := &String{chain, ""} value.Path("$").chain.assertFailed(t) value.Schema("") value.DateTime() value.Empty() value.No...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/monotime/monotime.go
vendor/github.com/gavv/monotime/monotime.go
// Copyright (C) 2016 Arista Networks, Inc. // Use of this source code is governed by the Apache License 2.0 // that can be found in the COPYING file. // Package monotime provides functions to access monotonic clock source. package monotime import ( "time" _ "unsafe" // required to use //go:linkname ) //go:noesca...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/gavv/monotime/monotime_test.go
vendor/github.com/gavv/monotime/monotime_test.go
// Copyright (C) 2016 Arista Networks, Inc. // Use of this source code is governed by the Apache License 2.0 // that can be found in the COPYING file. package monotime import "testing" func TestNow(t *testing.T) { for i := 0; i < 100; i++ { t1 := Now() t2 := Now() // I honestly thought that we needed >= here...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-colorable/colorable_windows.go
vendor/github.com/mattn/go-colorable/colorable_windows.go
// +build windows // +build !appengine package colorable import ( "bytes" "io" "math" "os" "strconv" "strings" "syscall" "unsafe" "github.com/mattn/go-isatty" ) const ( foregroundBlue = 0x1 foregroundGreen = 0x2 foregroundRed = 0x4 foregroundIntensity = 0x8 foregroundMask = (foregr...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-colorable/noncolorable.go
vendor/github.com/mattn/go-colorable/noncolorable.go
package colorable import ( "bytes" "io" ) // NonColorable hold writer but remove escape sequence. type NonColorable struct { out io.Writer } // NewNonColorable return new instance of Writer which remove escape sequence from Writer. func NewNonColorable(w io.Writer) io.Writer { return &NonColorable{out: w} } // ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-colorable/colorable_others.go
vendor/github.com/mattn/go-colorable/colorable_others.go
// +build !windows // +build !appengine package colorable import ( "io" "os" _ "github.com/mattn/go-isatty" ) // NewColorable return new instance of Writer which handle escape sequence. func NewColorable(file *os.File) io.Writer { if file == nil { panic("nil passed instead of *os.File to NewColorable()") } ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-colorable/colorable_appengine.go
vendor/github.com/mattn/go-colorable/colorable_appengine.go
// +build appengine package colorable import ( "io" "os" _ "github.com/mattn/go-isatty" ) // NewColorable return new instance of Writer which handle escape sequence. func NewColorable(file *os.File) io.Writer { if file == nil { panic("nil passed instead of *os.File to NewColorable()") } return file } // N...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-colorable/colorable_test.go
vendor/github.com/mattn/go-colorable/colorable_test.go
package colorable import ( "bytes" "os" "runtime" "testing" ) // checkEncoding checks that colorable is output encoding agnostic as long as // the encoding is a superset of ASCII. This implies that one byte not part of // an ANSI sequence must give exactly one byte in output func checkEncoding(t *testing.T, data ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_bsd.go
vendor/github.com/mattn/go-isatty/isatty_bsd.go
// +build darwin freebsd openbsd netbsd dragonfly // +build !appengine package isatty import ( "syscall" "unsafe" ) const ioctlReadTermios = syscall.TIOCGETA // IsTerminal return true if the file descriptor is terminal. func IsTerminal(fd uintptr) bool { var termios syscall.Termios _, _, err := syscall.Syscall6...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_windows.go
vendor/github.com/mattn/go-isatty/isatty_windows.go
// +build windows // +build !appengine package isatty import ( "strings" "syscall" "unicode/utf16" "unsafe" ) const ( fileNameInfo uintptr = 2 fileTypePipe = 3 ) var ( kernel32 = syscall.NewLazyDLL("kernel32.dll") procGetConsoleMode = kernel32.NewProc("GetConsol...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false