testutils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutils provides utility functions for testing, such as comparing JSON output to golden files and parsing test data from JSON files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestDataFilePath

func GetTestDataFilePath(filename string) string

GetTestDataFilePath returns the path to a test data file given its filename.

func ParseWebhookJSONFromFile

func ParseWebhookJSONFromFile(f string) (webhook.Message, error)

ParseWebhookJSONFromFile is a helper for parsing webhook data from JSON files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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