Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 333 for Got (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/lru_test.go

    	if value, ok := lru.Get("key1"); !ok || value != 2 {
    		t.Errorf("Expected value to be updated to 2, got %v", value)
    	}
    }
    
    func TestLRU_Add_NewKey_AddsEntry(t *testing.T) {
    	lru := lru.NewLRU[string, int](10, nil, time.Hour)
    	lru.Add("key1", 1)
    
    	if value, ok := lru.Get("key1"); !ok || value != 1 {
    		t.Errorf("Expected key1 to be added with value 1, got %v", value)
    	}
    }
    
    func TestLRU_Add_ExceedsSize_RemovesOldest(t *testing.T) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Sep 08 09:19:22 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/events.md

    /// tip
    
    The `shutdown` would happen when you are **stopping** the application.
    
    Maybe you need to start a new version, or you just got tired of running it. 🤷
    
    ///
    
    ### Lifespan function { #lifespan-function }
    
    The first thing to notice, is that we are defining an async function with `yield`. This is very similar to Dependencies with `yield`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  3. cmd/erasure-multipart.go

    		if r.ContentCRCType().String() != cs {
    			return pi, InvalidArgument{
    				Bucket: bucket,
    				Object: fi.Name,
    				Err:    fmt.Errorf("checksum missing, want %q, got %q", cs, r.ContentCRCType().String()),
    			}
    		}
    	}
    	onlineDisks = shuffleDisks(onlineDisks, fi.Erasure.Distribution)
    
    	// Need a unique name for the part being written in minioMetaBucket to
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:05:31 GMT 2025
    - 47.1K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

            }
    
            // Verify no exceptions
            for (int i = 0; i < threadCount; i++) {
                assertNull(exceptions[i], "Thread " + i + " threw exception");
                assertEquals("Thread " + i + " got wrong name", "Test", results[i]);
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (1)
  5. cmd/metacache-manager.go

    		return errFileNotFound
    	}
    	if cache.status == scanStateSuccess || cache.status == scanStateStarted {
    		if time.Since(cache.lastUpdate) > metacacheMaxRunningAge {
    			// We got a stale entry, mark error on handling server.
    			err := fmt.Errorf("timeout: list %s not updated", cache.id)
    			cache.error = err.Error()
    			cache.status = scanStateError
    			rpc.UpdateMetacacheListing(ctx, cache)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 5.2K bytes
    - Click Count (0)
  6. cmd/object-handlers_test.go

    			wantErr := testCase.wantAPICode
    			if gotErr != wantErr {
    				t.Errorf("test %d: want api error %q, got %q", i, wantErr, gotErr)
    			}
    			if testCase.wantHeaders != nil {
    				for k, v := range testCase.wantHeaders {
    					got := rec.Header().Get(k)
    					if got != v {
    						t.Errorf("Want header %s = %s, got %#v", k, v, rec.Header())
    					}
    				}
    			}
    		}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 163.1K bytes
    - Click Count (0)
  7. docs/en/docs/advanced/security/http-basic-auth.md

    At that point, by noticing that the server took some microseconds longer to send the "Incorrect username or password" response, the attackers will know that they got _something_ right, some of the initial letters were right.
    
    And then they can try again knowing that it's probably something more similar to `stanleyjobsox` than to `johndoe`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            // Act
            assertTrue(itr.hasNext());
            SmbResource r = itr.next();
    
            // Assert: filter was invoked twice and we got the accepted one
            ArgumentCaptor<SmbResource> captor = ArgumentCaptor.forClass(SmbResource.class);
            verify(filter, times(2)).accept(captor.capture());
            assertNotNull(r);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. cmd/object-api-putobject_test.go

    			t.Fatal(err)
    		}
    		var found bool
    		for _, fi := range files {
    			if fi.Name() == ".trash" {
    				continue
    			}
    			found = true
    		}
    		if found {
    			t.Fatalf("%s: expected: empty, got: non-empty %#v", minioMetaTmpBucket, files)
    		}
    	}
    }
    
    // Wrapper for calling Multipart PutObject tests for both Erasure multiple disks and single node setup.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                // Validate key length matches expected cipher requirements
                if (keyCopy.length != keyLength) {
                    throw new IllegalArgumentException("Key length mismatch: expected " + keyLength + ", got " + keyCopy.length);
                }
    
                // Create cipher with the copy - algorithm is just "AES" for SecretKeySpec
                final SecretKeySpec keySpec = new SecretKeySpec(keyCopy, "AES");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
Back to Top