From 1ffd4940352438befa9b5aa3e137540ccb5eecb4 Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Sat, 19 Oct 2024 11:04:37 -0500 Subject: [PATCH] Add test for `Type()`. --- internal/enclave/attester_noop_test.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/internal/enclave/attester_noop_test.go b/internal/enclave/attester_noop_test.go index e5f2ea6..c73841d 100644 --- a/internal/enclave/attester_noop_test.go +++ b/internal/enclave/attester_noop_test.go @@ -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'},