@@ -18,7 +18,7 @@ func TestServiceGenerateKEMKeypairSuccess(t *testing.T) {
1818 }
1919
2020 svc := NewService (
21- func (algo * algorithms.HpkeAlgorithm , bindingPubKey []byte , lifespanSecs uint64 ) (uuid.UUID , []byte , error ) {
21+ func (_ * algorithms.HpkeAlgorithm , bindingPubKey []byte , lifespanSecs uint64 ) (uuid.UUID , []byte , error ) {
2222 if len (bindingPubKey ) != 32 {
2323 t .Fatalf ("expected 32-byte binding public key, got %d" , len (bindingPubKey ))
2424 }
@@ -27,7 +27,7 @@ func TestServiceGenerateKEMKeypairSuccess(t *testing.T) {
2727 }
2828 return expectedUUID , expectedPubKey , nil
2929 },
30- func (limit , offset int ) ([]kpskcc.KEMKeyInfo , bool , error ) {
30+ func (_ , _ int ) ([]kpskcc.KEMKeyInfo , bool , error ) {
3131 return nil , false , nil
3232 },
3333 )
@@ -46,10 +46,10 @@ func TestServiceGenerateKEMKeypairSuccess(t *testing.T) {
4646
4747func TestServiceGenerateKEMKeypairError (t * testing.T ) {
4848 svc := NewService (
49- func (algo * algorithms.HpkeAlgorithm , bindingPubKey []byte , lifespanSecs uint64 ) (uuid.UUID , []byte , error ) {
49+ func (_ * algorithms.HpkeAlgorithm , _ []byte , _ uint64 ) (uuid.UUID , []byte , error ) {
5050 return uuid .Nil , nil , fmt .Errorf ("FFI error" )
5151 },
52- func (limit , offset int ) ([]kpskcc.KEMKeyInfo , bool , error ) {
52+ func (_ , _ int ) ([]kpskcc.KEMKeyInfo , bool , error ) {
5353 return nil , false , nil
5454 },
5555 )
@@ -75,7 +75,7 @@ func TestServiceEnumerateKEMKeysSuccess(t *testing.T) {
7575 }
7676
7777 svc := NewService (
78- func (algo * algorithms.HpkeAlgorithm , bindingPubKey []byte , lifespanSecs uint64 ) (uuid.UUID , []byte , error ) {
78+ func (_ * algorithms.HpkeAlgorithm , _ []byte , _ uint64 ) (uuid.UUID , []byte , error ) {
7979 return uuid .Nil , nil , nil
8080 },
8181 func (limit , offset int ) ([]kpskcc.KEMKeyInfo , bool , error ) {
@@ -100,10 +100,10 @@ func TestServiceEnumerateKEMKeysSuccess(t *testing.T) {
100100
101101func TestServiceEnumerateKEMKeysError (t * testing.T ) {
102102 svc := NewService (
103- func (algo * algorithms.HpkeAlgorithm , bindingPubKey []byte , lifespanSecs uint64 ) (uuid.UUID , []byte , error ) {
103+ func (_ * algorithms.HpkeAlgorithm , _ []byte , _ uint64 ) (uuid.UUID , []byte , error ) {
104104 return uuid .Nil , nil , nil
105105 },
106- func (limit , offset int ) ([]kpskcc.KEMKeyInfo , bool , error ) {
106+ func (_ , _ int ) ([]kpskcc.KEMKeyInfo , bool , error ) {
107107 return nil , false , fmt .Errorf ("enumerate error" )
108108 },
109109 )
0 commit comments