Documentation
¶
Index ¶
- Variables
- func Base64ToBigInt(s string) *big.Int
- func Base64ToBytes(s string) []byte
- func Hash(plaintext string, hash crypto.Hash) []byte
- func HexToBytes(s string) []byte
- func IsRemoteOnly() bool
- func Recorded[T any](t *testing.T, factory ClientFactory[T]) *T
- func RequireIfResponseError(t *testing.T, err error, target error) bool
- func URLJoinPath(base string, elem ...string) (string, error)
- type ClientFactory
- type Rand
- type Recording
- type RecordingOverride
Constants ¶
This section is empty.
Variables ¶
View Source
var MockCredential azcore.TokenCredential = &testCredential{}
Functions ¶
func Base64ToBigInt ¶ added in v0.7.0
Base64ToBigInt decodes a base64 string to a big.Int.
func Base64ToBytes ¶ added in v0.7.0
test.Base64ToBytes decodes a base64 string to a []byte.
func HexToBytes ¶ added in v0.7.0
HexToBytes decodes a hexadecimal string to a []byte.
func IsRemoteOnly ¶
func IsRemoteOnly() bool
func RequireIfResponseError ¶
Types ¶
type ClientFactory ¶
type Recording ¶
type Recording struct {
// contains filtered or unexported fields
}
func (*Recording) GetCredential ¶
func (r *Recording) GetCredential() azcore.TokenCredential
func (*Recording) GetTransport ¶
func (r *Recording) GetTransport() policy.Transporter
func (*Recording) IsPassthrough ¶
func (*Recording) OverrideResponse ¶
func (r *Recording) OverrideResponse(override RecordingOverride)
Click to show internal directories.
Click to hide internal directories.