testz

package
v0.0.54 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TestECDSAPrivateKey256BitPEM = `` /* 240-byte string literal not displayed */
View Source
const TestECDSAPrivateKey384BitPEM = `` /* 305-byte string literal not displayed */
View Source
const TestECDSAPrivateKey521bitPEM = `` /* 383-byte string literal not displayed */
View Source
const TestECDSAPublicKey256BitPEM = `` /* 177-byte string literal not displayed */
View Source
const TestECDSAPublicKey384BitPEM = `` /* 214-byte string literal not displayed */
View Source
const TestECDSAPublicKey521BitPEM = `` /* 267-byte string literal not displayed */
View Source
const TestRSAPrivateKey2048BitPEM = `` /* 1707-byte string literal not displayed */
View Source
const TestRSAPrivateKeyInvalidPEM = `-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC7VJTUt9Us8cKj
-----END PRIVATE KEY-----`
View Source
const TestRSAPublicKey2048BitPEM = `` /* 450-byte string literal not displayed */

Variables

View Source
var ErrTestError = errors.New("testz: test error")

Functions

This section is empty.

Types

type ReadWriter

type ReadWriter struct {
	Buffer *bytes.Buffer

	N   int
	Err error
}

func NewReadWriter

func NewReadWriter(buf *bytes.Buffer, n int, err error) *ReadWriter

func (*ReadWriter) Read

func (t *ReadWriter) Read(p []byte) (n int, err error)

func (*ReadWriter) Write

func (t *ReadWriter) Write(p []byte) (n int, err error)

type ResponseWriter

type ResponseWriter struct {
	Buffer *bytes.Buffer

	N   int
	Err error

	StatusCode int
	// contains filtered or unexported fields
}

func NewResponseWriter

func NewResponseWriter(buf *bytes.Buffer, initial http.Header, n int, err error) *ResponseWriter

func (*ResponseWriter) Header

func (t *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (t *ResponseWriter) Write(p []byte) (n int, err error)

func (*ResponseWriter) WriteHeader

func (t *ResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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