regression

package
v2.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package regression provides JSON serialization stability tests for OIDC protocol types.

These tests ensure that changes to struct fields or tags do not accidentally break the JSON output format.

Baseline data is stored in: pkg/protocol/kit/data/regression_data/

**Design Principle**: JSON files are the Single Source of Truth. Tests read JSON → unmarshal → marshal → compare for stability.

Index

Constants

View Source
const (
	RegressionAccessTokenClaims         = "protocol.AccessTokenClaims.json"
	RegressionIDTokenClaims             = "protocol.IDTokenClaims.json"
	RegressionUserInfo                  = "protocol.UserInfo.json"
	RegressionJWTProfileAssertionClaims = "protocol.JWTProfileAssertionClaims.json"
	RegressionIntrospectionResponse     = "protocol.IntrospectionResponse.json"
)

Variables

Functions

func LoadJSONData

func LoadJSONData(filename string) ([]byte, error)

func UnmarshalJSONData

func UnmarshalJSONData(filename string, target any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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