test

package
v0.0.0-...-c1ce609 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunKeyTests

func RunKeyTests(t *testing.T, tests []KeyTest)

func SignerTest

func SignerTest(t *testing.T, args JWKFixture)

Types

type JWKFixture

type JWKFixture struct {
	KeyID      string
	Algorithm  jwt.Algorithm
	PrivateKey []byte
	PublicKey  []byte
	Payload    []byte
	Signature  []byte
}

type KeyTest

type KeyTest struct {
	Name string
	Args JWKFixture
}

type NoopReader

type NoopReader struct{}

func (NoopReader) Read

func (r NoopReader) Read(b []byte) (int, error)

Jump to

Keyboard shortcuts

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