Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
08872633
Commit
08872633
authored
Nov 16, 2019
by
Sietse Ringers
Browse files
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
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
Supports
Markdown
0%
Try again
or
attach a new 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