pango

package
v0.0.0-...-290cb81 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package pango provides provides a method to test markup equality. It compares to strings that represent pango markup while ignoring differences in attribute order, escaping, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, expected, actual string, args ...interface{})

AssertEqual asserts that the given strings represent equivalent pango markup, i.e. the result of their rendering will be the same.

func AssertText

func AssertText(t *testing.T, expected string, markup string, args ...interface{})

AssertText asserts that the markup string has the expected text content. Text content ignores any tags and attributes, using only rendered text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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