diff

package
v1.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountMatchBlock

func CountMatchBlock(expect string, actual string) int

CountMatchBlock count the number of lines matched between two strings.

func Diff

func Diff(expect string, actual string) string

Diff returns diff string is expect and actual are different, otherwise returns empty string.

func TimeWithinDuration

func TimeWithinDuration(expected, actual time.Time, delta time.Duration) error

TimeWithinDuration checks if the difference between two times is within a given duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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