You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: time_test.go
    path of file: ./repos/bytom/lib/github.com/tendermint/go-wire
    
    the code of the file until where you have to start completion: package wire

import (
	"fmt"
	"testing"
	"time"

	"github.com/stretchr/testif
    
func TestJSONTimeParse(t *testing.T) {
	cases := []struct {
		input    string
		expected time.Time
		encoded  string
	}{
		{
			"2017-03-31T16:45:15Z",
			time.Date(2017, 3, 31, 16, 45, 15, 0, time.UTC),
			"2017-03-31T16:45:15.000Z",
		},
		{
			"2017-03-31T16:45:15.972Z",
			time.Date(2017, 3, 31, 16, 45, 15, 972000000, time.UTC),
			"2017-03-31T16:45:15.972Z",
		},
		{
			"2017-03-31T16:45:15.972167Z",
			time.Date(2017, 3, 31, 16, 45, 15, 972167000, time.UTC),
			"2017-03-31T16:45:15.972Z",
		},
	}

	for _, tc := range cases {
		var err error
		var parsed Input
		data := []byte(fmt.Sprintf(`{"date":"%s"}`, tc.input))
		ReadJSONPtr(&parsed, data, &err)
		if assert.Nil(t, err, "%s: %+v", tc.input, err) {
			assert.Equal(t, tc.expected, parsed.Date)
			out := JSONBytes(parsed)
			assert.Equal(t, fmt.Sprintf(`{"date":"%s"}`, tc.encoded), string(out))
		}
	}
}