mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-15 08:05:19 -05:00
Document exported funcs,types,interfaces and enable check. (#475)
* Include EXC0014 and fix issues. * Include EXC0012 and fix issues. Signed-off-by: Fabian Kammel <fk@edgeless.systems> Co-authored-by: Otto Bittner <cobittner@posteo.net>
This commit is contained in:
parent
c9873f2bfb
commit
0d12e37c96
74 changed files with 337 additions and 78 deletions
|
|
@ -32,10 +32,6 @@ func TestMarshal(t *testing.T) {
|
|||
role: Worker,
|
||||
wantJSON: `"Worker"`,
|
||||
},
|
||||
"admin role": {
|
||||
role: Admin,
|
||||
wantJSON: `"Admin"`,
|
||||
},
|
||||
"unknown role": {
|
||||
role: Unknown,
|
||||
wantJSON: `"Unknown"`,
|
||||
|
|
@ -85,14 +81,6 @@ func TestUnmarshal(t *testing.T) {
|
|||
json: `"worker"`,
|
||||
wantRole: Worker,
|
||||
},
|
||||
"Admin can be unmarshaled": {
|
||||
json: `"Admin"`,
|
||||
wantRole: Admin,
|
||||
},
|
||||
"lowercase admin can be unmarshaled": {
|
||||
json: `"admin"`,
|
||||
wantRole: Admin,
|
||||
},
|
||||
"other strings unmarshal to the unknown role": {
|
||||
json: `"anything"`,
|
||||
wantRole: Unknown,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue