- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestSum (0.1 sec)
-
pkg/monitoring/monitoring_test.go
rh := &testRecordHook{} monitoring.RegisterRecordHook(testSum.Name(), rh) testSum.With(name.Value("foo"), kind.Value("bart")).Increment() testSum.With(name.Value("baz"), kind.Value("bart")).Record(45) mt.Assert(testSum.Name(), map[string]string{"name": "foo", "kind": "bart"}, monitortest.Exactly(1))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 13 16:04:48 UTC 2023 - 8.4K bytes - Viewed (0) -
testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/KotlinPluginSmokeTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9.7K bytes - Viewed (0) -
src/net/http/httptrace/trace_test.go
t.Errorf("got %q; want %q", got, want) } } func TestCompose(t *testing.T) { var buf strings.Builder var testNum int connectStart := func(b byte) func(network, addr string) { return func(network, addr string) { if addr != "addr" { t.Errorf(`%d. args for %q case = %q, %q; want addr of "addr"`, testNum, b, network, addr) } buf.WriteByte(b) } } tests := [...]struct { trace, old *ClientTrace
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:34:30 UTC 2022 - 1.8K bytes - Viewed (0) -
src/image/color/color.go
// A batch version of this computation is in image/draw/draw.go. cr, cg, cb, ca := c.RGBA() ret, bestSum := 0, uint32(1<<32-1) for i, v := range p { vr, vg, vb, va := v.RGBA() sum := sqDiff(cr, vr) + sqDiff(cg, vg) + sqDiff(cb, vb) + sqDiff(ca, va) if sum < bestSum { if sum == 0 { return i } ret, bestSum = i, sum } } return ret }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 8.3K bytes - Viewed (0)