Update go generate related stuff

This commit is contained in:
2016-11-20 13:28:16 +00:00
parent d8055ec28b
commit da15db2b5e
5 changed files with 45 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ import (
// Mocks
//go:generate mockery -name Store -dir .. -recursive
//go:generate mockery -name Store -dir ../storage
// Suite Setup

View File

@@ -1,6 +1,7 @@
package mocks
import "github.com/stretchr/testify/mock"
import mock "github.com/stretchr/testify/mock"
import storage "github.com/jimeh/ozu.io/storage"
// Store is an autogenerated mock type for the Store type
type Store struct {
@@ -92,3 +93,5 @@ func (_m *Store) Set(_a0 []byte, _a1 []byte) error {
return r0
}
var _ storage.Store = (*Store)(nil)

16
vendor/vendor.json vendored
View File

@@ -71,20 +71,20 @@
{
"checksumSHA1": "urY45++NYCue4nh4k8OjUFnIGfU=",
"path": "github.com/mailru/easyjson/buffer",
"revision": "5bea336fb0e59202a544e3586d66539197aed9d2",
"revisionTime": "2016-07-14T10:56:04Z"
"revision": "159cdb893c982e3d1bc6450322fedd514f9c9de3",
"revisionTime": "2016-11-03T14:18:12Z"
},
{
"checksumSHA1": "yTDKAM4KBgOvXRsZC50zg0OChvM=",
"checksumSHA1": "nkU9oLa1/Uft9r3A5dRHF0xQRog=",
"path": "github.com/mailru/easyjson/jlexer",
"revision": "5bea336fb0e59202a544e3586d66539197aed9d2",
"revisionTime": "2016-07-14T10:56:04Z"
"revision": "159cdb893c982e3d1bc6450322fedd514f9c9de3",
"revisionTime": "2016-11-03T14:18:12Z"
},
{
"checksumSHA1": "4+d+6rhM1pei6lBguhqSEW7LaXs=",
"checksumSHA1": "Bn9G5eAKAISNmfGdVJPsyXIjUHw=",
"path": "github.com/mailru/easyjson/jwriter",
"revision": "5bea336fb0e59202a544e3586d66539197aed9d2",
"revisionTime": "2016-07-14T10:56:04Z"
"revision": "159cdb893c982e3d1bc6450322fedd514f9c9de3",
"revisionTime": "2016-11-03T14:18:12Z"
},
{
"checksumSHA1": "LuFv4/jlrmFNnDb/5SCSEPAM9vU=",

File diff suppressed because one or more lines are too long

View File

@@ -8,10 +8,19 @@ import (
jwriter "github.com/mailru/easyjson/jwriter"
)
var _ = json.RawMessage{} // suppress unused package warning
// suppress unused package warning
var (
_ = json.RawMessage{}
_ = jlexer.Lexer{}
_ = jwriter.Writer{}
)
func easyjson_6ff3ac1d_decode_github_com_jimeh_ozu_io_web_Response(in *jlexer.Lexer, out *Response) {
func easyjson6ff3ac1dDecodeGithubComJimehOzuIoWeb(in *jlexer.Lexer, out *Response) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
@@ -39,8 +48,11 @@ func easyjson_6ff3ac1d_decode_github_com_jimeh_ozu_io_web_Response(in *jlexer.Le
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjson_6ff3ac1d_encode_github_com_jimeh_ozu_io_web_Response(out *jwriter.Writer, in Response) {
func easyjson6ff3ac1dEncodeGithubComJimehOzuIoWeb(out *jwriter.Writer, in Response) {
out.RawByte('{')
first := true
_ = first
@@ -70,19 +82,27 @@ func easyjson_6ff3ac1d_encode_github_com_jimeh_ozu_io_web_Response(out *jwriter.
out.String(string(in.Error))
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v Response) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjson_6ff3ac1d_encode_github_com_jimeh_ozu_io_web_Response(&w, v)
easyjson6ff3ac1dEncodeGithubComJimehOzuIoWeb(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
easyjson_6ff3ac1d_encode_github_com_jimeh_ozu_io_web_Response(w, v)
easyjson6ff3ac1dEncodeGithubComJimehOzuIoWeb(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *Response) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjson_6ff3ac1d_decode_github_com_jimeh_ozu_io_web_Response(&r, v)
easyjson6ff3ac1dDecodeGithubComJimehOzuIoWeb(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjson_6ff3ac1d_decode_github_com_jimeh_ozu_io_web_Response(l, v)
easyjson6ff3ac1dDecodeGithubComJimehOzuIoWeb(l, v)
}