func handlerRunEnded(endedChan chan<- struct{}) msgHandlerFunc {
	return func(msg []byte) error {
		aEvent := event{}
		err := json.Unmarshal(msg, &aEvent)
		if err != nil {
			return err
		}
		if aEvent.Type == "ResultType_TestCasesCompleted" {
			endedChan <- struct{}{}
		}
		return nil
	}
}
// handlerRunEnded checks if a message is a ended running test and if so signals the ended channel
handlerRunEnded checks if a message is a ended running test and if so signals the ended channel
// handlerRunEnded checks if a message is a ended running test and if so signals the ended channel
func handlerRunEnded(endedChan chan<- struct{}) msgHandlerFunc {
	return func(msg []byte) error {
		aEvent := event{}
		err := json.Unmarshal(msg, &aEvent)
		if err != nil {
			return err
		}
		if aEvent.Type == "ResultType_TestCasesCompleted" {
			endedChan <- struct{}{}
		}
		return nil
	}
}
func handlerRunEnded ( endedChan chan <- struct { } ) msgHandlerFunc { return func ( msg [ ] byte ) error { aEvent := event { } err := json . Unmarshal ( msg , & aEvent ) if err != nil { return err } if aEvent . Type == " " { endedChan <- struct { } { } } return nil } }
handlerRunEnded checks if a message is a ended running test and if so signals the ended channel
handlerRunEnded checks if a message is a ended running test and if so signals the ended channel