Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 238 of 238 for FatalIf (0.16 sec)

  1. cmd/data-usage_test.go

    	err = got.deserialize(&buf)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got.Info.LastUpdate.IsZero() {
    		t.Error("lastupdate not set")
    	}
    
    	if !want.Info.LastUpdate.Equal(got.Info.LastUpdate) {
    		t.Fatalf("deserialize LastUpdate mismatch\nwant: %+v\ngot:  %+v", want, got)
    	}
    	if len(want.Cache) != len(got.Cache) {
    		t.Errorf("deserialize mismatch length\nwant: %+v\ngot:  %+v", len(want.Cache), len(got.Cache))
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. internal/grid/benchmark_test.go

    						return nil
    					})
    					if err != nil {
    						if debugReqs {
    							fmt.Println(err.Error())
    						}
    						b.Fatal(err.Error())
    					}
    					if got != messages {
    						b.Fatalf("wrong number of responses. want %d, got %d", messages, got)
    					}
    					latency += time.Since(t).Nanoseconds()
    					cancel()
    					n += got
    				}
    				atomic.AddInt64(&ops, int64(n*2))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    		}
    	}
    
    	haystack := []byte("test世界")
    	allocs := testing.AllocsPerRun(1000, func() {
    		if i := IndexRune(haystack, 's'); i != 2 {
    			t.Fatalf("'s' at %d; want 2", i)
    		}
    		if i := IndexRune(haystack, '世'); i != 4 {
    			t.Fatalf("'世' at %d; want 4", i)
    		}
    	})
    	if allocs != 0 {
    		t.Errorf("expected no allocations, got %f", allocs)
    	}
    }
    
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 23:54:14 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  4. lib/fips140/v1.1.0-rc1.zip

    fromHex("dcc71a421bc6ffafb7df") for b.Loop() { priv, err := NewPrivateKey44(seed) if err != nil { b.Fatalf("NewPrivateKey: %v", err) } sk := TestingOnlyPrivateKe(priv) if sha256.Sum256(sk) != ([32]byte)(skHash) { b.Fatalf("sk hash mismatch, got %x", sha256.Sum256(sk)) } sig, err := SignExternalMuDeterm(priv, μ) if err != nil { b.Fatalf("SignExternalMuDeterm: %v", err) } if sha256.Sum256(sig) != ([32]byte)(sigHash) { b.Fatalf("sig hash mismatch, got %x", sha256.Sum256(sig)) } if err := VerifyExternalMu(priv.PublicKey(),...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
  5. lib/fips140/v1.0.0-c2097c7c.zip

    for a := uint16(0); a < 1<<bits; a++ { f := decompress(a, bits) if f >= q { t.Fatalf("decompress(%d, %d) = %d >= q", a, bits, f) } got := compress(f, bits) if got != a { t.Fatalf("compress(decompress(%d, %d), %d) = %d", a, bits, bits, got) } } for a := fieldElement(0); a < q; a++ { c := compress(a, bits) if c >= 1<<bits { t.Fatalf("compress(%d, %d) = %d >= 2^bits", a, bits, c) } got := decompress(c, bits) diff := min(a-got, got-a, a-got+q, got-a+q) ceil := q / (1 << bits) if diff > fieldElement(ceil)...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Sep 25 19:53:19 UTC 2025
    - 642.7K bytes
    - Viewed (0)
  6. cmd/server_test.go

    }
    
    // Assert - checks if gotValue is same as expectedValue, if not fails the test.
    func (c *check) Assert(gotValue any, expectedValue any) {
    	c.Helper()
    	if !reflect.DeepEqual(gotValue, expectedValue) {
    		c.Fatalf("Test %s expected %v, got %v", c.testType, expectedValue, gotValue)
    	}
    }
    
    func verifyError(c *check, response *http.Response, code, description string, statusCode int) {
    	c.Helper()
    	data, err := io.ReadAll(response.Body)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg log, const Lmicroseconds ideal-int
    pkg log, const Lshortfile ideal-int
    pkg log, const LstdFlags ideal-int
    pkg log, const Ltime ideal-int
    pkg log, func Fatal(...interface{})
    pkg log, func Fatalf(string, ...interface{})
    pkg log, func Fatalln(...interface{})
    pkg log, func Flags() int
    pkg log, func New(io.Writer, string, int) *Logger
    pkg log, func Panic(...interface{})
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  8. api/go1.2.txt

    pkg testing, type TB interface, Fail()
    pkg testing, type TB interface, FailNow()
    pkg testing, type TB interface, Failed() bool
    pkg testing, type TB interface, Fatal(...interface{})
    pkg testing, type TB interface, Fatalf(string, ...interface{})
    pkg testing, type TB interface, Log(...interface{})
    pkg testing, type TB interface, Logf(string, ...interface{})
    pkg testing, type TB interface, Skip(...interface{})
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (1)
Back to top