From 37191779306d628648fc888b8cc3dd83e4eb7f3c Mon Sep 17 00:00:00 2001 From: Cooper Filby Date: Thu, 17 Oct 2019 09:06:51 -0500 Subject: [PATCH] Add more tests --- graphql/id_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/graphql/id_test.go b/graphql/id_test.go index e559b295f8b..ad600102edb 100644 --- a/graphql/id_test.go +++ b/graphql/id_test.go @@ -1,6 +1,7 @@ package graphql import ( + "math" "testing" "github.com/stretchr/testify/assert" @@ -19,6 +20,16 @@ func TestMarshalID(t *testing.T) { Expected: "12", ShouldError: false, }, + { + Name: "int64 max", + Input: math.MaxInt64, + Expected: "9223372036854775807", + }, + { + Name: "int64 min", + Input: math.MinInt64, + Expected: "-9223372036854775808", + }, } for _, tt := range tests {