testing

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestValidator

type TestValidator struct{}

TestValidator 测试验证器结构体

func (TestValidator) Select

func (TestValidator) Select(_ string, bs [][]byte) (int, error)

Select 从多个字节数组中选择一个有效的记录 参数:

  • _: string 未使用的参数
  • bs: [][]byte 字节数组切片

返回值:

  • int 选中的记录索引
  • error 错误信息

func (TestValidator) Validate

func (TestValidator) Validate(_ string, b []byte) error

Validate 验证单个记录是否有效 参数:

  • _: string 未使用的参数
  • b: []byte 要验证的字节数组

返回值:

  • error 错误信息

Jump to

Keyboard shortcuts

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