Documentation
¶
Index ¶
- func Diff(input ghtmx.Component, expected string) (actual, diff string, err error)
- func DiffCtx(ctx context.Context, input ghtmx.Component, expected string) (actual, diff string, err error)
- func DiffStrings(expected, actual string) (output, diff string, err error)
- func Normalize(src string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffStrings ¶
DiffStrings compares expected and actual HTML after normalizing both sides: each is parsed with x/net/html and re-printed one node per line with insignificant whitespace collapsed, so formatting differences do not register as diffs. Returns the normalized actual value and the diff.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.