Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestSmhasherAvalanche (0.12 sec)

  1. src/hash/maphash/smhasher_test.go

    	return bytesHash(k.b)
    }
    func (k *bytesKey) name() string {
    	return fmt.Sprintf("bytes%d", len(k.b))
    }
    
    // Flipping a single bit of a key should flip each output bit with 50% probability.
    func TestSmhasherAvalanche(t *testing.T) {
    	if runtime.GOARCH == "wasm" {
    		t.Skip("Too slow on wasm")
    	}
    	if testing.Short() {
    		t.Skip("Skipping in short mode")
    	}
    	t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/hash_test.go

    	return IfaceHash(k.i, 0)
    }
    func (k *IfaceKey) name() string {
    	return "Iface"
    }
    
    // Flipping a single bit of a key should flip each output bit with 50% probability.
    func TestSmhasherAvalanche(t *testing.T) {
    	if GOARCH == "wasm" {
    		t.Skip("Too slow on wasm")
    	}
    	if testing.Short() {
    		t.Skip("Skipping in short mode")
    	}
    	if race.Enabled {
    		t.Skip("Too long for race mode")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top