mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
Update go generate related stuff
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
// Mocks
|
// Mocks
|
||||||
|
|
||||||
//go:generate mockery -name Store -dir .. -recursive
|
//go:generate mockery -name Store -dir ../storage
|
||||||
|
|
||||||
// Suite Setup
|
// Suite Setup
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package mocks
|
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
|
// Store is an autogenerated mock type for the Store type
|
||||||
type Store struct {
|
type Store struct {
|
||||||
@@ -92,3 +93,5 @@ func (_m *Store) Set(_a0 []byte, _a1 []byte) error {
|
|||||||
|
|
||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ storage.Store = (*Store)(nil)
|
||||||
|
|||||||
16
vendor/vendor.json
vendored
16
vendor/vendor.json
vendored
@@ -71,20 +71,20 @@
|
|||||||
{
|
{
|
||||||
"checksumSHA1": "urY45++NYCue4nh4k8OjUFnIGfU=",
|
"checksumSHA1": "urY45++NYCue4nh4k8OjUFnIGfU=",
|
||||||
"path": "github.com/mailru/easyjson/buffer",
|
"path": "github.com/mailru/easyjson/buffer",
|
||||||
"revision": "5bea336fb0e59202a544e3586d66539197aed9d2",
|
"revision": "159cdb893c982e3d1bc6450322fedd514f9c9de3",
|
||||||
"revisionTime": "2016-07-14T10:56:04Z"
|
"revisionTime": "2016-11-03T14:18:12Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "yTDKAM4KBgOvXRsZC50zg0OChvM=",
|
"checksumSHA1": "nkU9oLa1/Uft9r3A5dRHF0xQRog=",
|
||||||
"path": "github.com/mailru/easyjson/jlexer",
|
"path": "github.com/mailru/easyjson/jlexer",
|
||||||
"revision": "5bea336fb0e59202a544e3586d66539197aed9d2",
|
"revision": "159cdb893c982e3d1bc6450322fedd514f9c9de3",
|
||||||
"revisionTime": "2016-07-14T10:56:04Z"
|
"revisionTime": "2016-11-03T14:18:12Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "4+d+6rhM1pei6lBguhqSEW7LaXs=",
|
"checksumSHA1": "Bn9G5eAKAISNmfGdVJPsyXIjUHw=",
|
||||||
"path": "github.com/mailru/easyjson/jwriter",
|
"path": "github.com/mailru/easyjson/jwriter",
|
||||||
"revision": "5bea336fb0e59202a544e3586d66539197aed9d2",
|
"revision": "159cdb893c982e3d1bc6450322fedd514f9c9de3",
|
||||||
"revisionTime": "2016-07-14T10:56:04Z"
|
"revisionTime": "2016-11-03T14:18:12Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "LuFv4/jlrmFNnDb/5SCSEPAM9vU=",
|
"checksumSHA1": "LuFv4/jlrmFNnDb/5SCSEPAM9vU=",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -8,10 +8,19 @@ import (
|
|||||||
jwriter "github.com/mailru/easyjson/jwriter"
|
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 in.IsNull() {
|
||||||
|
if isTopLevel {
|
||||||
|
in.Consumed()
|
||||||
|
}
|
||||||
in.Skip()
|
in.Skip()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -39,8 +48,11 @@ func easyjson_6ff3ac1d_decode_github_com_jimeh_ozu_io_web_Response(in *jlexer.Le
|
|||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim('}')
|
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('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
@@ -70,19 +82,27 @@ func easyjson_6ff3ac1d_encode_github_com_jimeh_ozu_io_web_Response(out *jwriter.
|
|||||||
out.String(string(in.Error))
|
out.String(string(in.Error))
|
||||||
out.RawByte('}')
|
out.RawByte('}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v Response) MarshalJSON() ([]byte, error) {
|
func (v Response) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjson_6ff3ac1d_encode_github_com_jimeh_ozu_io_web_Response(&w, v)
|
easyjson6ff3ac1dEncodeGithubComJimehOzuIoWeb(&w, v)
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
|
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 {
|
func (v *Response) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjson_6ff3ac1d_decode_github_com_jimeh_ozu_io_web_Response(&r, v)
|
easyjson6ff3ac1dDecodeGithubComJimehOzuIoWeb(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjson_6ff3ac1d_decode_github_com_jimeh_ozu_io_web_Response(l, v)
|
easyjson6ff3ac1dDecodeGithubComJimehOzuIoWeb(l, v)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user