func handlerTestCaseResult(resultChan chan<- TestCase) msgHandlerFunc {
	return func(msg []byte) error {
		tcResult := TestCaseResult{}
		err := json.Unmarshal(msg, &tcResult)
		if err != nil {
			return errors.Wrap(err, "test case result handler")
		}
		if tcResult.Type == "ResultType_TestCaseResult" {
			resultChan <- tcResult.Test
		}
		return nil
	}
}
// handlerTestCaseResult looks for messages with TestCaseResult schema and
// returns the result thru a channel if its a result message
handlerTestCaseResult looks for messages with TestCaseResult schema and
returns the result thru a channel if its a result message
// handlerTestCaseResult looks for messages with TestCaseResult schema and // returns the result thru a channel if its a result message
func handlerTestCaseResult(resultChan chan<- TestCase) msgHandlerFunc {
	return func(msg []byte) error {
		tcResult := TestCaseResult{}
		err := json.Unmarshal(msg, &tcResult)
		if err != nil {
			return errors.Wrap(err, "test case result handler")
		}
		if tcResult.Type == "ResultType_TestCaseResult" {
			resultChan <- tcResult.Test
		}
		return nil
	}
}
func handlerTestCaseResult ( resultChan chan <- TestCase ) msgHandlerFunc { return func ( msg [ ] byte ) error { tcResult := TestCaseResult { } err := json . Unmarshal ( msg , & tcResult ) if err != nil { return errors . Wrap ( err , " " ) } if tcResult . Type == " " { resultChan <- tcResult . Test } return nil } }
handlerTestCaseResult looks for messages with TestCaseResult schema and
returns the result thru a channel if its a result message
handlerTestCaseResult looks for messages with TestCaseResult schema and returns the result thru a channel if its a result message