schematest

package
v0.0.0-...-c9ffc7e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RoundTrip

func RoundTrip(t *testing.T, f schema.Resolver, v any, wantXML string, wantErr bool)

RoundTrip validates if v marshals to want or wantErr (if set), and the resulting XML unmarshals to v.

func RoundTripName

func RoundTripName(t *testing.T, f schema.Resolver, name xml.Name, v any, want string, wantErr bool)

RoundTripName validates if v marshals to want or wantErr (if set), and the resulting XML unmarshals to v. The outer XML tag will use name, if set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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