component

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CalcLuckyNumber(n int) (int, error)
}

func New

func New(numRedis rNumRedis.Client) Client

type TestCalcLuckyNumber

type TestCalcLuckyNumber struct{}

func (TestCalcLuckyNumber) FailGetTodayNumber

func (TestCalcLuckyNumber) FailGetTodayNumber(t *testing.T) (actual int, err error)

FailGetTodayNumber fail when GetTodayNumber.

func (TestCalcLuckyNumber) Success

func (TestCalcLuckyNumber) Success(t *testing.T) (actual int, err error)

Success when everything is success.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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