(f *testing.F)
| 38 | } |
| 39 | |
| 40 | func FuzzGenerateDeterministicKey(f *testing.F) { |
| 41 | testcases := []int64{0, 1234, 1010101010} |
| 42 | for _, tc := range testcases { |
| 43 | f.Add(tc) // Use f.Add to provide a seed corpus |
| 44 | } |
| 45 | f.Fuzz(func(t *testing.T, seed int64) { |
| 46 | key1 := agentrsa.GenerateDeterministicKey(seed) |
| 47 | key2 := agentrsa.GenerateDeterministicKey(seed) |
| 48 | assert.Equal(t, key1, key2) |
| 49 | assert.EqualExportedValues(t, key1, key2) |
| 50 | }) |
| 51 | } |
nothing calls this directly
no test coverage detected