- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 5,360 for watt (0.06 sec)
-
src/net/dial_test.go
if c != nil { c.Close() } if tt.expectOk && err != nil { t.Errorf("#%d: got %v; want nil", i, err) } else if !tt.expectOk && err == nil { t.Errorf("#%d: got nil; want non-nil", i) } if elapsed < tt.expectElapsed || elapsed >= forever { t.Errorf("#%d: got %v; want >= %v, < forever", i, elapsed, tt.expectElapsed) } // Repeat each case, ensuring that it can be canceled.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 30.3K bytes - Viewed (0) -
src/context/x_test.go
t.Errorf("<-c.Done() == %v want nothing (it should block)", x) default: } if got, want := fmt.Sprint(c), "context.TODO"; got != want { t.Errorf("TODO().String() = %q want %q", got, want) } } func TestWithCancel(t *testing.T) { c1, cancel := WithCancel(Background()) if got, want := fmt.Sprint(c1), "context.Background.WithCancel"; got != want { t.Errorf("c1.String() = %q want %q", got, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 26.3K bytes - Viewed (0) -
src/time/sleep_test.go
testAfterStop(t, newTimerFunc) }) } func testAfterStop(t *testing.T, newTimer func(Duration) *Timer) { // We want to test that we stop a timer before it runs. // We also want to test that it didn't run after a longer timer. // Since we don't want the test to run for too long, we don't // want to use lengthy times. That makes the test inherently flaky. // So only report an error if it fails five times in a row.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/delegating.go
See the License for the specific language governing permissions and limitations under the License. */ package authorizerfactory import ( "errors" "time" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/apiserver/pkg/authorization/authorizer" "k8s.io/apiserver/plugin/pkg/authorizer/webhook" authorizationclient "k8s.io/client-go/kubernetes/typed/authorization/v1" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 22:41:27 UTC 2024 - 2.1K bytes - Viewed (0) -
src/os/signal/signal.go
if h == nil { handlers.Unlock() return } delete(handlers.m, c) for n := 0; n < numSig; n++ { if h.want(n) { handlers.ref[n]-- if handlers.ref[n] == 0 { disableSignal(n) } } } // Signals will no longer be delivered to the channel. // We want to avoid a race for a signal such as SIGINT: // it should be either delivered to the channel,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
internal/ringbuffer/README.md
If you want to block when reading or writing, you must enable it: ```go rb := ringbuffer.New(1024).SetBlocking(true) ``` Enabling blocking will cause the ring buffer to behave like a buffered [io.Pipe](https://pkg.go.dev/io#Pipe). Regular Reads will block until data is available, but not wait for a full buffer.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.1K bytes - Viewed (0) -
src/sync/oncefunc_test.go
b.ReportAllocs() for i := 0; i < b.N; i++ { if want, got := 42, doOnceValue(); want != got { b.Fatalf("want %d, got %d", want, got) } } }) b.Run("v=Global", func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { if want, got := 42, onceValue(); want != got { b.Fatalf("want %d, got %d", want, got) } } }) b.Run("v=Local", func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:31:33 UTC 2023 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go
t.Errorf("failed to process all annotations") } want := allAnnotations[0] if ok := len(want) == 1 && len(want["timestamp"]) > 0; !ok { t.Errorf("invalid annotations: %v", want) } for i, annotations := range allAnnotations[1:] { if diff := cmp.Diff(want, annotations); diff != "" { t.Errorf("%d: unexpected annotations (-want +got): %s", i, diff) } } })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 20.3K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/authorization.go
See the License for the specific language governing permissions and limitations under the License. */ package options import ( "fmt" "time" "github.com/spf13/pflag" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/apiserver/pkg/authorization/authorizer" "k8s.io/apiserver/pkg/authorization/authorizerfactory" "k8s.io/apiserver/pkg/authorization/path" "k8s.io/apiserver/pkg/authorization/union" "k8s.io/apiserver/pkg/server"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 9.3K bytes - Viewed (0)