Skip to content

Commit

Permalink
Add test for Type().
Browse files Browse the repository at this point in the history
  • Loading branch information
NullHypothesis committed Oct 19, 2024
1 parent d778be3 commit 1ffd494
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/enclave/attester_noop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import (
"github.com/stretchr/testify/require"
)

func TestType(t *testing.T) {
require.Equal(t, typeNoop, NewNoopAttester().Type())
}

func TestSuccessfulVerification(t *testing.T) {
var (
a = NewNoopAttester()
// // JSON objects are map[string]interface{} and numbers are float64.
// origAux = map[string]any{
// "Name": "John Doe",
// "Age": float64(42),
// }
a = NewNoopAttester()
origAux = &AuxInfo{
PublicKey: [userDataLen]byte{'a', 'b', 'c'},
UserData: [userDataLen]byte{'d', 'e', 'f'},
Expand Down

0 comments on commit 1ffd494

Please sign in to comment.