json

package
v0.0.0-...-b222a75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package json is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsoniter

func NewJsoniter() *jsoniterator

NewJsoniter constructs new JSON module using Jsoniter library

func NewStd

func NewStd() *std

NewStd construct a Golang-standard JSON library

Types

type MockJson

type MockJson struct {
	// contains filtered or unexported fields
}

MockJson is a mock of Json interface

func NewMockJson

func NewMockJson(ctrl *gomock.Controller) *MockJson

NewMockJson creates a new mock instance

func (*MockJson) EXPECT

func (m *MockJson) EXPECT() *MockJsonMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockJson) Marshal

func (m *MockJson) Marshal(arg0 interface{}) ([]byte, error)

Marshal mocks base method

func (*MockJson) Unmarshal

func (m *MockJson) Unmarshal(arg0 []byte, arg1 interface{}) error

Unmarshal mocks base method

type MockJsonMockRecorder

type MockJsonMockRecorder struct {
	// contains filtered or unexported fields
}

MockJsonMockRecorder is the mock recorder for MockJson

func (*MockJsonMockRecorder) Marshal

func (mr *MockJsonMockRecorder) Marshal(arg0 interface{}) *gomock.Call

Marshal indicates an expected call of Marshal

func (*MockJsonMockRecorder) Unmarshal

func (mr *MockJsonMockRecorder) Unmarshal(arg0, arg1 interface{}) *gomock.Call

Unmarshal indicates an expected call of Unmarshal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL