Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 5,360 for watt (0.08 sec)

  1. src/internal/trace/trace_test.go

    					log := ev.Log()
    					match = log.Task == wantEv.task && log.Category == wantEv.args[0] && log.Message == wantEv.args[1]
    				}
    				if match {
    					want[i] = want[len(want)-1]
    					want = want[:len(want)-1]
    					break
    				}
    			}
    		}
    		if len(want) != 0 {
    			for _, ev := range want {
    				t.Errorf("no match for %s TaskID=%d Args=%#v", ev.kind, ev.task, ev.args)
    			}
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. pkg/controller/job/tracking_utils_test.go

    			}
    		})
    	}
    }
    
    func validateTerminatedPodsTrackingFinalizerTotal(event string, want int) error {
    	got, err := testutil.GetCounterMetricValue(metrics.TerminatedPodsTrackingFinalizerTotal.WithLabelValues(event))
    	if err != nil {
    		return err
    	}
    	if int(got) != want {
    		return fmt.Errorf("got value %d, want %d", int(got), want)
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/bindm.go

    const cThreadNum = 2
    
    func init() {
    	register("EnsureBindM", EnsureBindM)
    }
    
    //export GoCheckBindM
    func GoCheckBindM(thread uintptr) {
    	// Wait all threads start
    	if started.Load() != cThreadNum {
    		// Only once for each thread, since it will wait all threads start.
    		started.Add(1)
    		for started.Load() < cThreadNum {
    			runtime.Gosched()
    		}
    	}
    	m := runtime_getm_for_test()
    	mutex.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/syscall/exec_windows_test.go

    	}
    	childOutput, err = os.ReadFile(childDumpPath)
    	if err != nil {
    		t.Fatalf("reading child output failed: %v", err)
    	}
    	if got, want := string(childOutput), fmt.Sprintf("%d", parent.Process.Pid); got != want {
    		t.Fatalf("child output: want %q, got %q", want, got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/amd64/versions_test.go

    		{0b00000000, 64},
    	} {
    		if got := bits.TrailingZeros64(tt.x); got != tt.want {
    			t.Errorf("TrailingZeros64(%#x) = %d, want %d", tt.x, got, tt.want)
    		}
    		want := tt.want
    		if want == 64 {
    			want = 32
    		}
    		if got := bits.TrailingZeros32(uint32(tt.x)); got != want {
    			t.Errorf("TrailingZeros64(%#x) = %d, want %d", tt.x, got, want)
    		}
    	}
    }
    
    func TestRound(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  6. src/runtime/debuglog_test.go

    	if want := "[] true false -42 32767 18446744073709551615 0xfff 0x0 aaaa const string\n"; got != want {
    		t.Fatalf("want %q, got %q", want, got)
    	}
    }
    
    func TestDebugLogSym(t *testing.T) {
    	skipDebugLog(t)
    	runtime.ResetDebugLog()
    	pc, _, _, _ := runtime.Caller(0)
    	runtime.Dlog().PC(pc).End()
    	got := dlogCanonicalize(runtime.DumpDebugLog())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  7. src/os/timeout_test.go

    		if t1.Before(deadline) {
    			t.Errorf("Read took %s; expected at least %s", actual, d)
    		}
    		if t.Failed() {
    			return
    		}
    		if want := timeoutUpperBound(d); actual > want {
    			next, ok := nextTimeout(actual)
    			if !ok {
    				t.Fatalf("Read took %s; expected at most %v", actual, want)
    			}
    			// Maybe this machine is too slow to reliably schedule goroutines within
    			// the requested duration. Increase the timeout and try again.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  8. src/net/dnsclient_unix_test.go

    	if err != nil {
    		t.Fatal("LookupTXT failed:", err)
    	}
    	if want := 2; len(txt) != want {
    		t.Fatalf("len(txt), got %d, want %d", len(txt), want)
    	}
    	if want := "string1 string2"; txt[0] != want {
    		t.Errorf("txt[0], got %q, want %q", txt[0], want)
    	}
    	if want := "onestring"; txt[1] != want {
    		t.Errorf("txt[1], got %q, want %q", txt[1], want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/decorated_watcher_test.go

    		}
    		if pod.Annotations["decorated"] != "true" {
    			t.Fatalf("pod.Annotations[\"decorated\"], want=%s, get=%s", "true", pod.Labels["decorated"])
    		}
    		if e.Type != watchType {
    			t.Fatalf("expected type %s, got %s", watchType, e.Type)
    		}
    	case <-time.After(wait.ForeverTestTimeout):
    		t.Fatalf("timeout after %v", wait.ForeverTestTimeout)
    	}
    }
    
    func expectErrorEvent(t *testing.T, dw *decoratedWatcher) {
    	select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 02 19:25:31 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  10. src/testing/testing_test.go

    	want := 0
    	if race.Enabled {
    		want = 1
    	}
    	if c != want {
    		t.Errorf("got %d race reports; want %d", c, want)
    	}
    }
    
    func TestBenchmarkRace(t *testing.T) {
    	out := runTest(t, "BenchmarkRacy")
    	c := bytes.Count(out, []byte("race detected during execution of test"))
    
    	want := 0
    	// We should see one race detector report.
    	if race.Enabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top