Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testnocgo (0.11 sec)

  1. src/crypto/sha256/sha256_test.go

    		h.Reset()
    		h.Write(in)
    		out = h.Sum(out[:0])
    	}))
    	if n > 0 {
    		t.Errorf("allocs = %d, want 0", n)
    	}
    }
    
    type cgoData struct {
    	Data [16]byte
    	Ptr  *cgoData
    }
    
    func TestCgo(t *testing.T) {
    	// Test that Write does not cause cgo to scan the entire cgoData struct for pointers.
    	// The scan (if any) should be limited to the [16]byte.
    	d := new(cgoData)
    	d.Ptr = d
    	h := New()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:21:42 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top