MCPcopy
hub / github.com/IBM/sarama / satisfies

Method satisfies

functional_test.go:556–572  ·  view source on GitHub ↗
(other kafkaVersion)

Source from the content-addressed store, hash-verified

554type kafkaVersion []int
555
556func (kv kafkaVersion) satisfies(other kafkaVersion) bool {
557 var ov int
558 for index, v := range kv {
559 if len(other) <= index {
560 ov = 0
561 } else {
562 ov = other[index]
563 }
564
565 if v < ov {
566 return false
567 } else if v > ov {
568 return true
569 }
570 }
571 return true
572}
573
574func parseKafkaVersion(version string) kafkaVersion {
575 numbers := strings.Split(version, ".")

Callers 2

checkKafkaVersionFunction · 0.80
kafkaVersionAtLeastFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected