github.com/openfga/openfga@v1.5.4-rc1/internal/test/check/check.go (about)

     1  package checktest
     2  
     3  import (
     4  	openfgav1 "github.com/openfga/api/proto/openfga/v1"
     5  	"google.golang.org/protobuf/types/known/structpb"
     6  )
     7  
     8  type Assertion struct {
     9  	Tuple            *openfgav1.TupleKey
    10  	ContextualTuples []*openfgav1.TupleKey `json:"contextualTuples"`
    11  	Context          *structpb.Struct
    12  	Expectation      bool
    13  	ErrorCode        int `json:"errorCode"` // If ErrorCode is non-zero then we expect that the check call failed.
    14  }