Skip to content

Commit f942f2a

Browse files
committed
Switch to using json string capabilities
1 parent f7249d1 commit f942f2a

18 files changed

+29
-1215
lines changed

cfn/cfn_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/encoding"
1413
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
1514
"github.com/aws/aws-lambda-go/lambdacontext"
1615
"github.com/aws/aws-sdk-go/aws"
@@ -195,16 +194,16 @@ func TestMakeEventFuncModel(t *testing.T) {
195194
t.Errorf("TestMakeEventFuncModel() = %v", err)
196195
return
197196
}
198-
model, err := encoding.Stringify(got.ResourceModel)
197+
model, err := json.Marshal(got.ResourceModel)
199198
if err != nil {
200199
t.Errorf("TestMakeEventFuncModel() = %v", err)
201200
}
202-
wantrModel, err := encoding.Stringify(tt.want)
201+
wantrModel, err := json.Marshal(tt.want)
203202
if err != nil {
204203
t.Errorf("TestMakeEventFuncModel() = %v", err)
205204
}
206-
if wantrModel != model {
207-
t.Errorf("response = %v; want %v", model, wantrModel)
205+
if string(wantrModel) != string(model) {
206+
t.Errorf("response = %v; want %v", string(model), string(wantrModel))
208207
}
209208

210209
})

cfn/encoding/encoding.go

Lines changed: 0 additions & 133 deletions
This file was deleted.

cfn/encoding/encoding_test.go

Lines changed: 0 additions & 103 deletions
This file was deleted.

cfn/encoding/marshal.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

cfn/encoding/marshal_test.go

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)