- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 1,713 for Cake (0.02 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py
"/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"} ) assert response.status_code == 400, response.text assert response.json() == {"detail": "X-Key header invalid"} @needs_py39 def test_get_invalid_second_header_users(client: TestClient): response = client.get( "/users/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"} )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 8.8K bytes - Viewed (0) -
cmd/xl-storage-meta-inline.go
func (x *xlMetaInlineData) remove(keys ...string) bool { in := x.afterVersion() sz, buf, _ := msgp.ReadMapHeaderBytes(in) newKeys := make([][]byte, 0, sz) newVals := make([][]byte, 0, sz) var removeKey func(s []byte) bool // Copy if big number of compares... if len(keys) > 5 && sz > 5 { mKeys := make(map[string]struct{}, len(keys)) for _, key := range keys { mKeys[key] = struct{}{} }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 9.5K bytes - Viewed (0) -
src/bufio/bufio_test.go
t.Fatalf("wrong panic: %v", err) } default: t.Fatalf("unexpected panic value: %T(%v)", err, err) } }() b.Read(make([]byte, 100)) } var errFake = errors.New("fake error") type errorThenGoodReader struct { didErr bool nread int } func (r *errorThenGoodReader) Read(p []byte) (int, error) { r.nread++ if !r.didErr {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
return errors.New("cannot combine --data and --combine") } // file / version / file filemap := make(map[string]map[string]string) foundData := make(map[string][]byte) partDataToVerID := make(map[string][2]string) var baseName string // versionID -> combineFiles := make(map[string][]string) decode := func(r io.Reader, file string) ([]byte, error) { file = strings.ReplaceAll(file, ":", "_")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 05 11:57:44 UTC 2024 - 40.3K bytes - Viewed (0) -
internal/bpool/bpool_test.go
bp.Put(make([]byte, bp.w, bp.wcap-1)) // wrong capacity is rejected (less) bp.Put(make([]byte, bp.w, bp.wcap+1)) // wrong capacity is rejected (more) bp.Put(make([]byte, width)) // wrong capacity is rejected (very less) if len(bp.c) > 0 { t.Fatal("bytepool should have rejected invalid packets") } // Try putting a short slice into pool bp.Put(make([]byte, bp.w, bp.wcap)[:2]) if len(bp.c) != 1 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 2.8K bytes - Viewed (0) -
callbacks/query.go
clauseSelect.Columns = make([]clause.Column, len(db.Statement.Schema.DBNames)) for idx, dbName := range db.Statement.Schema.DBNames { clauseSelect.Columns[idx] = clause.Column{Table: db.Statement.Table, Name: dbName} } } specifiedRelationsName := make(map[string]interface{}) for _, join := range db.Statement.Joins {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 10.1K bytes - Viewed (1) -
.github/workflows/go-lint.yml
GO111MODULE: on run: | sudo apt install jq -y sudo sysctl net.ipv6.conf.all.disable_ipv6=0 sudo sysctl net.ipv6.conf.default.disable_ipv6=0 make make test
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 16 20:46:53 UTC 2024 - 1010 bytes - Viewed (0) -
misc/linkcheck/linkcheck.go
) var wg sync.WaitGroup // outstanding fetches var urlq = make(chan string) // URLs to crawl // urlFrag is a URL and its optional #fragment (without the #) type urlFrag struct { url, frag string } var ( mu sync.Mutex crawled = make(map[string]bool) // URL without fragment -> true neededFrags = make(map[urlFrag][]string) // URL#frag -> who needs it )
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 3.9K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
* thereof. * * @param formal The type whose type variables or itself is mapped to other type(s). It's almost * always a bug if {@code formal} isn't a type variable and contains no type variable. Make * sure you are passing the two parameters in the right order. * @param actual The type that the formal type variable(s) are mapped to. It can be or contain yet
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
callbacks/create.go
rValLen := stmt.ReflectValue.Len() if rValLen == 0 { stmt.AddError(gorm.ErrEmptySlice) return } stmt.SQL.Grow(rValLen * 18) stmt.Vars = make([]interface{}, 0, rValLen*len(values.Columns)) values.Values = make([][]interface{}, rValLen) defaultValueFieldsHavingValue := map[*schema.Field][]interface{}{} for i := 0; i < rValLen; i++ { rv := reflect.Indirect(stmt.ReflectValue.Index(i))
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Apr 08 03:29:55 UTC 2024 - 12.5K bytes - Viewed (0)