fixtures

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package fixtures exposes test utilities to build test scenarios.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFile

func ConfigFile(t *testing.T, content string) string

ConfigFile writes a configuration file in a fresh directory and reports its path.

func Petstore

func Petstore(t *testing.T) string

Petstore is the corpus's complete example: a meta block, paths, parameters, responses and models. A document produced from it exercises every part of this command that is not about flags.

func Unannotated

func Unannotated(t *testing.T) string

Unannotated is a fixture with no swagger:meta block, so the document it produces has no info section, so it is invalid on its own, and an -input overlay shows up against it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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