test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StrconvWrapper

type StrconvWrapper struct{}

func (*StrconvWrapper) FormatBool

func (s *StrconvWrapper) FormatBool(b bool) string

func (*StrconvWrapper) FormatFloat

func (s *StrconvWrapper) FormatFloat(f float64, fmt byte, prec, bitSize int) string

func (*StrconvWrapper) FormatInt

func (s *StrconvWrapper) FormatInt(i int64, base int) string

func (*StrconvWrapper) FormatUint

func (s *StrconvWrapper) FormatUint(i uint64, base int) string

type UnitPrintMock

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

func NewUnitPrintMock

func NewUnitPrintMock() *UnitPrintMock

NewUnitPrintMock 用于初始化单测的的print mock

func (*UnitPrintMock) Debug

func (imp *UnitPrintMock) Debug(a ...interface{})

Debug 用于mock脚本中的println

func (*UnitPrintMock) Debugf

func (imp *UnitPrintMock) Debugf(format string, a ...interface{})

Debugf 用于mock脚本中的println

func (*UnitPrintMock) Get

func (imp *UnitPrintMock) Get(key int) string

Get 获取打印的信息

Directories

Path Synopsis
package必须是main
package必须是main

Jump to

Keyboard shortcuts

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