Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cmpT2 (0.03 sec)

  1. pkg/slices/slices_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package slices
    
    import (
    	"cmp"
    	"fmt"
    	"math/rand"
    	"reflect"
    	"strconv"
    	"testing"
    
    	cmp2 "github.com/google/go-cmp/cmp"
    
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/tests/util/leak"
    )
    
    type s struct {
    	Junk string
    }
    
    func TestEqual(t *testing.T) {
    	tests := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. test/codegen/comparisons.go

    	if a-b*c >= 0 {
    		c4 = 1
    	}
    	return c1 + c2 + c3 + c4
    }
    
    func cmp1(val string) bool {
    	var z string
    	// amd64:-".*memequal"
    	return z == val
    }
    
    func cmp2(val string) bool {
    	var z string
    	// amd64:-".*memequal"
    	return val == z
    }
    
    func cmp3(val string) bool {
    	z := "food"
    	// amd64:-".*memequal"
    	return z == val
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top