testing

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package testing implements utilities to aid in testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteResults

func WriteResults(d *dom.Doc, errs []error)

WriteResults adds elements to the supplied DOM summarizing the test results. The elements are given identifiers such that the results can be queried by automation. The following elements are added:

  • failureCount: a div element, whose contained text is the number of tests that failed.
  • failures: A pre element, whose contained text is a human-readable list of the individual failures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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