mock

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mock implements a mock implementation of MarshalUnmarshaler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	MarshalResponse []byte
	MarshalError    error
	UnmarshalError  error
}

Encoder MockCSRFStore is a mock implementation of Cipher.

func (Encoder) Marshal

func (mc Encoder) Marshal(i interface{}) ([]byte, error)

Marshal is a mock implementation of Encoder.

func (Encoder) Unmarshal

func (mc Encoder) Unmarshal(s []byte, i interface{}) error

Unmarshal is a mock implementation of Encoder.

Jump to

Keyboard shortcuts

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