// Equal returns if the two MetricReports are the same.
Equal returns if the two MetricReports are the same.
// Equal returns if the two MetricReports are the same .
func (mr MetricReport) Equal(other MetricReport) bool {
	return mr.Name == other.Name &&
		mr.StartTime.Equal(other.StartTime) &&
		mr.EndTime.Equal(other.EndTime) &&
		reflect.DeepEqual(mr.Labels, other.Labels) &&
		reflect.DeepEqual(mr.Value, other.Value)
}
func ( mr MetricReport ) Equal ( other MetricReport ) bool { return mr . Name == other . Name && mr . StartTime . Equal ( other . StartTime ) && mr . EndTime . Equal ( other . EndTime ) && reflect . DeepEqual ( mr . Labels , other . Labels ) && reflect . DeepEqual ( mr . Value , other . Value ) }
Equal returns if the two MetricReports are the same.
Equal returns if the two MetricReports are the same .
// Time object equality must be checked using `Time.Equal`, // not `==` or `reflect.DeepEqual`. // See https://github.com/golang/go/issues/17875