testtool

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const TimeLayout string = "15:04:05.000"

TimeLayout is the format to print time to string.

Variables

This section is empty.

Functions

func TestHelperGenRot13Input

func TestHelperGenRot13Input(size int) []byte

TestHelperGenRot13Input generates valid rotate-13 input.

func TestHelperRot13

func TestHelperRot13(in []byte) ([]byte, error)

TestHelperRot13 returns the rotate-13 of the input.

func TestHelperServeConn

func TestHelperServeConn(conn net.Conn) error

TestHelperServeConn serves client requests and returns the rotate-13 of the input.

Types

type ReplayRecord

type ReplayRecord struct {
	Data   []byte        // the recorded data
	Ready  chan struct{} // indicate the data is recorded and ready to process
	Finish chan struct{} // indicate the record is processed and no longer needed
}

ReplayRecord is a bundle that helps to test replay attack.

Jump to

Keyboard shortcuts

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