Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
1658e86b
Commit
1658e86b
authored
Feb 12, 2016
by
Eric Chiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: fix govet warnings
parent
07236da1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
migrate_test.go
db/migrate_test.go
+1
-1
manager_test.go
user/manager/manager_test.go
+2
-2
No files found.
db/migrate_test.go
View file @
1658e86b
...
@@ -105,7 +105,7 @@ func TestMigrateClientMetadata(t *testing.T) {
...
@@ -105,7 +105,7 @@ func TestMigrateClientMetadata(t *testing.T) {
id
:=
strconv
.
Itoa
(
i
)
id
:=
strconv
.
Itoa
(
i
)
m
,
err
:=
dbMap
.
Get
(
clientIdentityModel
{},
id
)
m
,
err
:=
dbMap
.
Get
(
clientIdentityModel
{},
id
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Errorf
(
"case %d: failed to get model: %
err
"
,
i
,
err
)
t
.
Errorf
(
"case %d: failed to get model: %
v
"
,
i
,
err
)
continue
continue
}
}
cim
,
ok
:=
m
.
(
*
clientIdentityModel
)
cim
,
ok
:=
m
.
(
*
clientIdentityModel
)
...
...
user/manager/manager_test.go
View file @
1658e86b
...
@@ -301,7 +301,7 @@ func TestVerifyEmail(t *testing.T) {
...
@@ -301,7 +301,7 @@ func TestVerifyEmail(t *testing.T) {
for
i
,
tt
:=
range
tests
{
for
i
,
tt
:=
range
tests
{
f
:=
makeTestFixtures
()
f
:=
makeTestFixtures
()
cb
,
err
:=
f
.
mgr
.
VerifyEmail
(
user
.
EmailVerification
{
tt
.
evClaims
})
cb
,
err
:=
f
.
mgr
.
VerifyEmail
(
user
.
EmailVerification
{
Claims
:
tt
.
evClaims
})
if
tt
.
wantErr
{
if
tt
.
wantErr
{
if
err
==
nil
{
if
err
==
nil
{
t
.
Errorf
(
"case %d: want non-nil err"
,
i
)
t
.
Errorf
(
"case %d: want non-nil err"
,
i
)
...
@@ -371,7 +371,7 @@ func TestChangePassword(t *testing.T) {
...
@@ -371,7 +371,7 @@ func TestChangePassword(t *testing.T) {
for
i
,
tt
:=
range
tests
{
for
i
,
tt
:=
range
tests
{
f
:=
makeTestFixtures
()
f
:=
makeTestFixtures
()
cb
,
err
:=
f
.
mgr
.
ChangePassword
(
user
.
PasswordReset
{
tt
.
pwrClaims
},
tt
.
newPassword
)
cb
,
err
:=
f
.
mgr
.
ChangePassword
(
user
.
PasswordReset
{
Claims
:
tt
.
pwrClaims
},
tt
.
newPassword
)
if
tt
.
wantErr
{
if
tt
.
wantErr
{
if
err
==
nil
{
if
err
==
nil
{
t
.
Errorf
(
"case %d: want non-nil err"
,
i
)
t
.
Errorf
(
"case %d: want non-nil err"
,
i
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment