scrapertest

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package scrapertest holds assertions shared by the scraper packages' tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireValidTags

func RequireValidTags(t testing.TB, infos ...[]database.TagInfo)

RequireValidTags fails the test for any tag the vocabulary would refuse at write time. Every scraper output test should call it: a scraper that emits an unmapped value loses it silently in production.

func RequireValidWrite

func RequireValidWrite(t testing.TB, write *database.ScrapeWrite)

RequireValidWrite checks every tag in a scrape write, including its sentinel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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