Skip to content

Commit

Permalink
In , change fields names for better representation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjy9206 committed Sep 26, 2024
1 parent 7dbdcb1 commit fb2b851
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/bpmetadata/parser/state_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TestParseOutputTypesFromState_WithComplexTypes(t *testing.T) {
}
]
},
"list": {
"list_output": {
"value": [
"foo",
"bar"
Expand All @@ -93,7 +93,7 @@ func TestParseOutputTypesFromState_WithComplexTypes(t *testing.T) {
]
]
},
"map": {
"map_output": {
"value": {
"foo": "bar",
"number": 42
Expand All @@ -119,11 +119,11 @@ func TestParseOutputTypesFromState_WithComplexTypes(t *testing.T) {
"number": structpb.NewStringValue("number"),
}}),
}}),
"list": structpb.NewListValue(&structpb.ListValue{Values: []*structpb.Value{
"list_output": structpb.NewListValue(&structpb.ListValue{Values: []*structpb.Value{
structpb.NewStringValue("tuple"),
structpb.NewListValue(&structpb.ListValue{Values: []*structpb.Value{structpb.NewStringValue("string"), structpb.NewStringValue("string")}}),
}}),
"map": structpb.NewListValue(&structpb.ListValue{Values: []*structpb.Value{
"map_output": structpb.NewListValue(&structpb.ListValue{Values: []*structpb.Value{
structpb.NewStringValue("object"),
structpb.NewStructValue(&structpb.Struct{Fields: map[string]*structpb.Value{
"foo": structpb.NewStringValue("string"),
Expand Down

0 comments on commit fb2b851

Please sign in to comment.