- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,116 for shouldn (0.05 sec)
-
internal/lock/lock_test.go
if isClosed { t.Fatal("File ref count shouldn't be zero") } // Decrease reference count by 1. if err = rlk.Close(); err != nil { t.Fatal(err) } // Now file should be closed. isClosed = rlk.IsClosed() if !isClosed { t.Fatal("File ref count should be zero") } // Closing a file again should result in invalid argument. if err = rlk.Close(); err != os.ErrInvalid { t.Fatal(err) }
Registered: 2025-05-25 19:28 - Last Modified: 2025-02-18 16:25 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
assertEquals("Cause should be available.", exception, handler.exception); assertEquals("EventBus should be available.", eventBus, handler.context.getEventBus()); assertEquals("Event should be available.", EVENT, handler.context.getEvent()); assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber()); assertEquals( "Method should be available.",
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-14 19:40 - 11.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/EventBusTest.java
assertEquals("Cause should be available.", exception, handler.exception); assertEquals("EventBus should be available.", eventBus, handler.context.getEventBus()); assertEquals("Event should be available.", EVENT, handler.context.getEvent()); assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber()); assertEquals( "Method should be available.",
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-14 19:40 - 11.4K bytes - Viewed (0) -
internal/ioutil/ioutil_test.go
_, err := w.Write([]byte("1")) if err != context.DeadlineExceeded { t.Error("DeadlineWriter shouldn't be successful - should return context.DeadlineExceeded") } _, err = w.Write([]byte("1")) if err != context.DeadlineExceeded { t.Error("DeadlineWriter shouldn't be successful - should return context.DeadlineExceeded") } w.Close()
Registered: 2025-05-25 19:28 - Last Modified: 2025-02-18 16:25 - 5.6K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver_linux_test.go
defer fixture.podCloser() ztunClient := fixture.ztunClient uid := fixture.uid // we got a message from ztun, so it should have observed us being connected mt.Assert(ztunnelConnected.Name(), nil, monitortest.Exactly(1)) m, fds := readRequest(t, ztunClient) // we should get the fd to dev null. note that we can't assert the fd number // as the kernel may have given us a different number that refers to the same file.
Registered: 2025-05-28 22:53 - Last Modified: 2025-03-03 21:55 - 21.4K bytes - Viewed (0) -
tests/non_std_test.go
t.Error("RowsAffected should be correct when do batch update") } animal = Animal{From: "somewhere"} // No name fields, should be filled with the default value (galeone) DB.Save(&animal).Update("From", "a nice place") // The name field should be untouched DB.First(&animal, animal.Counter) if animal.Name != "galeone" { t.Errorf("Name fields shouldn't be changed if untouched, but got %v", animal.Name) }
Registered: 2025-05-25 09:35 - Last Modified: 2024-05-08 04:07 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
// it still should only have executed once due to memoization assertEquals(1, countingSupplier.calls); Thread.sleep(150); assertEquals(20, (int) memoizedSupplier.get()); // old value expired assertEquals(2, countingSupplier.calls); assertEquals(20, (int) memoizedSupplier.get()); // it still should only have executed twice due to memoization
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 18K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
// it still should only have executed once due to memoization assertEquals(1, countingSupplier.calls); Thread.sleep(150); assertEquals(20, (int) memoizedSupplier.get()); // old value expired assertEquals(2, countingSupplier.calls); assertEquals(20, (int) memoizedSupplier.get()); // it still should only have executed twice due to memoization
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 18K bytes - Viewed (0) -
cmd/generic-handlers_test.go
h := setRequestValidityMiddleware(okHandler) h.ServeHTTP(w, r) switch { case test.ShouldFail && w.Code == http.StatusOK: t.Errorf("Test %d: should fail but status code is HTTP %d", i, w.Code) case !test.ShouldFail && w.Code != http.StatusOK: t.Errorf("Test %d: should not fail but status code is HTTP %d and not 200 OK", i, w.Code) } } } func Benchmark_hasBadPathComponent(t *testing.B) { tests := []struct {
Registered: 2025-05-25 19:28 - Last Modified: 2025-01-27 16:42 - 6.2K bytes - Viewed (0) -
docs/en/docs/deployment/versions.md
/// So, you should be able to pin to a version like: ```txt fastapi>=0.45.0,<0.46.0 ``` Breaking changes and new features are added in "MINOR" versions. /// tip The "MINOR" is the number in the middle, for example, in `0.2.3`, the MINOR version is `2`. /// ## Upgrading the FastAPI versions You should add tests for your app.
Registered: 2025-05-25 07:19 - Last Modified: 2024-08-25 02:44 - 3.4K bytes - Viewed (0)