func (c *ContextAccessor) PutValues(tc *TestCase, ctx *Context) error {
	for _, m := range c.Matches {
		success := m.PutValue(tc, ctx)
		if !success {
			return c.AppErr(fmt.Sprintf("error ContextAccessor PutValues - failed Match [%s]", m.String()))
		}
	}
	return nil
}
// PutValues is used by the 'contextPut' directive and essentially collects a set of matches whose purpose is
// To select values to put in a context. All the matches in this section must have a name (of the target context
// variable), a description (so if things go wrong we can accurately report) and an operation which results in
// the a selection which is copied into the context variable
// Note: the initial interation of this will just implement the JSON pattern/field matcher
PutValues is used by the 'contextPut' directive and essentially collects a set of matches whose purpose is
To select values to put in a context. All the matches in this section must have a name (of the target context
variable), a description (so if things go wrong we can accurately report) and an operation which results in
the a selection which is copied into the context variable
Note: the initial interation of this will just implement the JSON pattern/field matcher
// PutValues is used by the ' contextPut ' directive and essentially collects a set of matches whose purpose is // To select values to put in a context . All the matches in this section must have a name ( of the target context // variable ) a description ( so if things go wrong we can accurately report ) and an operation which results in // the a selection which is copied into the context variable // Note : the initial interation of this will just implement the JSON pattern / field matcher
func (c *ContextAccessor) PutValues(tc *TestCase, ctx *Context) error {
	for _, m := range c.Matches {
		success := m.PutValue(tc, ctx)
		if !success {
			return c.AppErr(fmt.Sprintf("error ContextAccessor PutValues - failed Match [%s]", m.String()))
		}
	}
	return nil
}
func ( c * ContextAccessor ) PutValues ( tc * TestCase , ctx * Context ) error { for _ , m := range c . Matches { success := m . PutValue ( tc , ctx ) if ! success { return c . AppErr ( fmt . Sprintf ( " " , m . String ( ) ) ) } } return nil }
PutValues is used by the 'contextPut' directive and essentially collects a set of matches whose purpose is
To select values to put in a context.
PutValues is used by the ' contextPut ' directive and essentially collects a set of matches whose purpose is To select values to put in a context .