cli: print maa token in verify

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-08-04 17:48:14 +02:00
parent 8dbe79500f
commit e97b2afc14
8 changed files with 225 additions and 23 deletions

View file

@ -201,7 +201,7 @@ type stubAttDocFormatter struct {
formatErr error
}
func (f *stubAttDocFormatter) format(_ string, _ bool, _ bool, _ measurements.M) (string, error) {
func (f *stubAttDocFormatter) format(_ context.Context, _ string, _ bool, _ bool, _ measurements.M, _ string) (string, error) {
return "", f.formatErr
}
@ -226,7 +226,7 @@ func TestFormat(t *testing.T) {
for name, tc := range testCases {
t.Run(name, func(t *testing.T) {
_, err := tc.formatter.format(tc.doc, false, false, nil)
_, err := tc.formatter.format(context.Background(), tc.doc, false, false, nil, "")
if tc.wantErr {
assert.Error(t, err)
} else {