Documentation ¶
Index ¶
- func Alias(opts ...any) gomegatypes.GomegaMatcher
- func BeArray(matcher ...gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
- func BeComputed() gomegatypes.GomegaMatcher
- func BeObject(matcher ...gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
- func BeSecret(matcher ...gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
- func MatchArrayValue(matcher gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
- func MatchObject(options Options, props Props) gomegatypes.GomegaMatcher
- func MatchProps(options Options, props Props) gomegatypes.GomegaMatcher
- func MatchResourceReferenceValue(urn resource.URN, id string) gomegatypes.GomegaMatcher
- func MatchSecret(e gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
- func MatchValue(v any) gomegatypes.GomegaMatcher
- func ProtobufStruct(matcher gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
- type AliasMatcher
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alias ¶
func Alias(opts ...any) gomegatypes.GomegaMatcher
Alias matches an Alias by name, type, and/or parent. The following option types are supported: - resource.URN - matches the parent URN - tokens.Type - matches the type - tokens.QName - matches the name - string - matches the name
func BeArray ¶
func BeArray(matcher ...gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
func BeComputed ¶
func BeComputed() gomegatypes.GomegaMatcher
func BeObject ¶
func BeObject(matcher ...gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
func BeSecret ¶
func BeSecret(matcher ...gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
func MatchArrayValue ¶
func MatchArrayValue(matcher gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
func MatchObject ¶
func MatchObject(options Options, props Props) gomegatypes.GomegaMatcher
func MatchProps ¶
func MatchProps(options Options, props Props) gomegatypes.GomegaMatcher
MatchProps succeeds if the actual value is a resource.PropertyMap and all of the expected properties match. Options can be used to ignore extra properties or missing properties.
func MatchResourceReferenceValue ¶
func MatchResourceReferenceValue(urn resource.URN, id string) gomegatypes.GomegaMatcher
MatchResourceReferenceValue succeeds if the actual value is a resource.PropertyValue of type ResourceReference and the URN and ID match the expected values.
func MatchSecret ¶
func MatchSecret(e gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
func MatchValue ¶
func MatchValue(v any) gomegatypes.GomegaMatcher
func ProtobufStruct ¶
func ProtobufStruct(matcher gomegatypes.GomegaMatcher) gomegatypes.GomegaMatcher
ProtobufStruct matches a protobuf struct by decoding it to a map and then applying the given matcher.
Types ¶
type AliasMatcher ¶
type AliasMatcher struct { Name *tokens.QName Type *tokens.Type ParentURN *resource.URN NoParent *bool }
func (*AliasMatcher) FailureMessage ¶
func (matcher *AliasMatcher) FailureMessage(actual interface{}) (message string)
func (*AliasMatcher) Match ¶
func (matcher *AliasMatcher) Match(actual interface{}) (success bool, err error)
func (*AliasMatcher) NegatedFailureMessage ¶
func (matcher *AliasMatcher) NegatedFailureMessage(actual interface{}) (message string)
type Props ¶
type Props map[resource.PropertyKey]gomegatypes.GomegaMatcher