conformance

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEmptyOpenAPIFallback

func AssertEmptyOpenAPIFallback(t *testing.T, spec []byte, prefix string, mount MountFunc)

AssertEmptyOpenAPIFallback verifies that MountOpenAPI still mounts generated static-only apps whose OpenAPI report has no endpoint paths.

func AssertOpenAPIConformance

func AssertOpenAPIConformance(t *testing.T, spec []byte, prefix string, mount MountFunc)

AssertOpenAPIConformance verifies that an adapter serves every OpenAPI method/path route through the generated GOWDK handler and strips the host mount prefix before dispatch.

func AssertOpenAPIRestRoute

func AssertOpenAPIRestRoute(t *testing.T, prefix string, mount MountFunc)

AssertOpenAPIRestRoute verifies that adapters use x-gowdk.route to preserve final rest-param semantics lost by standard OpenAPI path syntax.

func AssertPrefixedRedirect added in v0.7.0

func AssertPrefixedRedirect(t *testing.T, prefix string, mount MountFunc)

AssertPrefixedRedirect verifies that prefixed mounts rebase generated same-origin redirects back under the host-framework prefix.

Types

type MountFunc

type MountFunc func(routes []gowdkadapters.Route, handler http.Handler, prefix string) (http.Handler, error)

MountFunc mounts routes into a host framework and returns the host handler.

Jump to

Keyboard shortcuts

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