From cfec788d67c2081cf4775965e6b0b0d739f8ae8c Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 16 Mar 2016 11:06:57 -0700 Subject: [PATCH] Add makefile target for ffjson Signed-off-by: Michael Crosby --- Makefile | 5 +++++ specs-go/serialize_test.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 224f085c7..17877657b 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,11 @@ test: .govet .golint .gitvalidation .gitvalidation: git-validation -q -run DCO,short-subject -v -range $(EPOCH_TEST_COMMIT)..HEAD +# `go get https://github.com/pquerna/ffjson` +ffjson: + cd specs-go/ && ffjson config.go + cd specs-go/ && ffjson state.go + clean: rm -rf output/ *~ diff --git a/specs-go/serialize_test.go b/specs-go/serialize_test.go index c54cf1dc9..b5052b8ed 100644 --- a/specs-go/serialize_test.go +++ b/specs-go/serialize_test.go @@ -130,7 +130,7 @@ var spec = &Spec{ }, } -func BenchmarkMarsalSpec(b *testing.B) { +func BenchmarkMarshalSpec(b *testing.B) { for i := 0; i < b.N; i++ { _, err := ffjson.Marshal(spec) if err != nil {