Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
irmago
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
IRMA
Github mirrors
irmago
Commits
08872633
Commit
08872633
authored
Nov 16, 2019
by
Sietse Ringers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add Verify subtest
parent
277b5a9f
Pipeline
#33679
passed with stages
in 7 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
irmaclient/irmaclient_test.go
irmaclient/irmaclient_test.go
+9
-0
No files found.
irmaclient/irmaclient_test.go
View file @
08872633
...
...
@@ -77,6 +77,15 @@ func TestVerify(t *testing.T) {
require
.
NoError
(
t
,
err
)
require
.
Equal
(
t
,
irma
.
ProofStatusMissingAttributes
,
status
)
})
t
.
Run
(
"wrong nonce"
,
func
(
t
*
testing
.
T
)
{
client
,
request
,
disclosure
:=
parseDisclosure
(
t
)
request
.
Nonce
=
big
.
NewInt
(
100
)
_
,
status
,
err
:=
disclosure
.
Verify
(
client
.
Configuration
,
request
)
require
.
NoError
(
t
,
err
)
require
.
Equal
(
t
,
irma
.
ProofStatusInvalid
,
status
)
})
}
func
verifyClientIsUnmarshaled
(
t
*
testing
.
T
,
client
*
Client
)
{
...
...
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