gardener: github.com/gardener/gardener/pkg/utils/validation/gomega Index | Files

package gomega

import "github.com/gardener/gardener/pkg/utils/validation/gomega"

Index

Package Files

matchers.go

func ConsistOfFields Uses

func ConsistOfFields(fields ...gstruct.Fields) types.GomegaMatcher

ConsistOfFields succeeds if actual matches all selected fields. Actual must be an array, slice or map. For maps, ConsistOfFields matches against the map's values. Actual's elements must be pointers.

func HaveFields Uses

func HaveFields(fields gstruct.Fields) types.GomegaMatcher

HaveFields succeeds if actual is a pointer and has a specific fields. Ignores extra elements or fields.

Package gomega imports 3 packages (graph). Updated 2018-12-03. Refresh now. Tools for package owners.