Skip to content

Commit

Permalink
session: add tests for nil sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed Jul 9, 2017
1 parent dd2463a commit d67d52d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions session_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package fosite

import (
"testing"

"github.com/stretchr/testify/assert"
)

func TestSession(t *testing.T) {
var s *DefaultSession
assert.Empty(t, s.GetSubject())
assert.Empty(t, s.GetUsername())
assert.Nil(t, s.Clone())
}

0 comments on commit d67d52d

Please sign in to comment.