Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 4,315 for watt (0.18 sec)

  1. 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)
  2. 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)
  3. src/net/http/pprof/pprof_test.go

    			}
    			if got, want := resp.Header.Get("Content-Type"), tc.contentType; got != want {
    				t.Errorf("Content-Type: got %q; want %q", got, want)
    			}
    			if got, want := resp.Header.Get("Content-Disposition"), tc.contentDisposition; got != want {
    				t.Errorf("Content-Disposition: got %q; want %q", got, want)
    			}
    
    			if resp.StatusCode == http.StatusOK {
    				return
    			}
    			if got, want := resp.Header.Get("X-Go-Pprof"), "1"; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  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/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)
  9. 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)
  10. src/net/http/transport_test.go

    		res.Body.Close()
    		t.Errorf("unexpected success")
    	}
    
    	r := <-reqc
    	if got, want := r.Header.Get("User-Agent"), "foo"; got != want {
    		t.Errorf("CONNECT request User-Agent = %q; want %q", got, want)
    	}
    	if got, want := r.Header.Get("Other"), "bar"; got != want {
    		t.Errorf("CONNECT request Other = %q; want %q", got, want)
    	}
    }
    
    func TestTransportProxyGetConnectHeader(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top