Debian Codegraph @

internal/oauth2/types/userdata_test.go

raw
1 package types_test
2
3 import (
4 "testing"
5
6 "github.com/jkroepke/openvpn-auth-oauth2/v2/internal/oauth2/types"
7 "github.com/stretchr/testify/require"
8 )
9
10 func TestUserInfoGetSubject(t *testing.T) {
11 t.Parallel()
12
13 userInfo := types.UserInfo{Subject: "subject"}
14
15 require.Equal(t, "subject", userInfo.GetSubject())
16 }