testutil

package
v0.0.0-...-4e09bf3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertHTML

func AssertHTML(t *testing.T, want, got string)

AssertHTML compares two HTML strings, ignoring whitespace and case sensitivity. It does this by:

  • Lower-casing both strings.
  • Removing all whitespace characters (spaces, newlines, tabs, carriage returns).
  • Comparing the resulting strings using the `assert.Equal` function from the testing package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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