mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
386b69f473
* fix incorrect exported name in comments * add comments to exported methods
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
package testdata
|
|
|
|
// Equal --
|
|
func Equal() {
|
|
x := []string{"a"}
|
|
if len(x) == len(x) { // want "Boolean expression has identical expressions on both sides. The result is always true."
|
|
}
|
|
}
|
|
|
|
// NotEqual --
|
|
func NotEqual() {
|
|
x := []string{"a"}
|
|
if len(x) != len(x) { // want "Boolean expression has identical expressions on both sides. The result is always true."
|
|
}
|
|
}
|
|
|
|
// GreaterThanOrEqual --
|
|
func GreaterThanOrEqual() {
|
|
x := []string{"a"}
|
|
if len(x) >= len(x) { // want "Boolean expression has identical expressions on both sides. The result is always true."
|
|
}
|
|
}
|
|
|
|
// LessThanOrEqual --
|
|
func LessThanOrEqual() {
|
|
x := []string{"a"}
|
|
if len(x) <= len(x) { // want "Boolean expression has identical expressions on both sides. The result is always true."
|
|
}
|
|
}
|
|
|
|
// GreaterThan --
|
|
func GreaterThan() {
|
|
x := []string{"a"}
|
|
if len(x) > len(x) { // want "Boolean expression has identical expressions on both sides. The result is always false."
|
|
}
|
|
}
|
|
|
|
// LessThan --
|
|
func LessThan() {
|
|
x := []string{"a"}
|
|
if len(x) < len(x) { // want "Boolean expression has identical expressions on both sides. The result is always false."
|
|
}
|
|
}
|