barista.run: barista.run/testing/pango Index | Files

package pango

import "barista.run/testing/pango"

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

Package Files

pango.go

func AssertEqual Uses

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 Uses

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.

Package pango imports 5 packages (graph). Updated 2018-09-03. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).