mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-27 17:25:20 -04:00
Use any instead of interface
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
8153390a57
commit
29206ac845
10 changed files with 19 additions and 19 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
|
||||
func TestMarshalK8SResources(t *testing.T) {
|
||||
testCases := map[string]struct {
|
||||
resources interface{}
|
||||
resources any
|
||||
wantErr bool
|
||||
wantYAML string
|
||||
}{
|
||||
|
@ -119,8 +119,8 @@ metadata:
|
|||
func TestUnmarshalK8SResources(t *testing.T) {
|
||||
testCases := map[string]struct {
|
||||
data string
|
||||
into interface{}
|
||||
wantObj interface{}
|
||||
into any
|
||||
wantObj any
|
||||
wantErr bool
|
||||
}{
|
||||
"ConfigMap as only field can be unmarshaled": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue