- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 5,003 for boolp (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go
t.Errorf("Unexpected error while converting %#v: %v", test.input, err) } validateResult(t, test.input, result, test.expected) } } func intp(n int) *int { return &n }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 03 07:01:02 UTC 2018 - 6.2K bytes - Viewed (0) -
cmd/genswaggertypedocs/swagger_type_docs.go
var ( functionDest = flag.StringP("func-dest", "f", "-", "Output for swagger functions; '-' means stdout (default)") typeSrc = flag.StringP("type-src", "s", "", "From where we are going to read the types") verify = flag.BoolP("verify", "v", false, "Verifies if the given type-src file has documentation for every type") ) func main() { flag.Parse() if *typeSrc == "" { klog.Fatalf("Please define -s flag as it is the source file") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 1.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/bools/bools.go
op.checkSuspect(pass, exprs) } }) return nil, nil } type boolOp struct { name string tok token.Token // token corresponding to this operator badEq token.Token // token corresponding to the equality test that should not be used with this operator } var ( or = boolOp{"or", token.LOR, token.NEQ} and = boolOp{"and", token.LAND, token.EQL} ) // commutativeSets returns all side effect free sets of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 4.9K bytes - Viewed (0) -
test/codegen/bool.go
func convertNeq0B(x uint8, c bool) bool { // amd64:"ANDL\t[$]1",-"SETNE" // ppc64x:"RLDICL",-"CMPW",-"ISEL" b := x&1 != 0 return c && b } func convertNeq0W(x uint16, c bool) bool { // amd64:"ANDL\t[$]1",-"SETNE" // ppc64x:"RLDICL",-"CMPW",-"ISEL" b := x&1 != 0 return c && b } func convertNeq0L(x uint32, c bool) bool { // amd64:"ANDL\t[$]1",-"SETB"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 13 22:12:32 UTC 2023 - 6.7K bytes - Viewed (0) -
src/cmd/vet/testdata/bool/bool.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the bool checker. package bool func _() { var f, g func() int if v, w := f(), g(); v == w || v == w { // ERROR "redundant or: v == w || v == w" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 346 bytes - Viewed (0) -
internal/config/bool-flag.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package config import ( "encoding/json" "fmt" "strconv" "strings" ) // BoolFlag - wrapper bool type. type BoolFlag bool // String - returns string of BoolFlag. func (bf BoolFlag) String() string { if bf { return "on" } return "off" } // MarshalJSON - converts BoolFlag into JSON data.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 07 15:10:40 UTC 2022 - 2.3K bytes - Viewed (0) -
internal/config/bool-flag_test.go
} } } // Test BoolFlag.UnmarshalJSON() func TestBoolFlagUnmarshalJSON(t *testing.T) { testCases := []struct { data []byte expectedResult BoolFlag expectedErr bool }{ {[]byte(`{}`), BoolFlag(false), true}, {[]byte(`["on"]`), BoolFlag(false), true}, {[]byte(`"junk"`), BoolFlag(false), true}, {[]byte(`""`), BoolFlag(true), false}, {[]byte(`"on"`), BoolFlag(true), false},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/fuse_test.go
Goto("checkPtr")), Bloc("checkPtr", Valu("ptr1", OpLoad, ptrType, 0, nil, "sb", "mem"), Valu("nilptr", OpConstNil, ptrType, 0, nil), Valu("bool1", OpNeqPtr, c.config.Types.Bool, 0, nil, "ptr1", "nilptr"), If("bool1", "then", "exit")), Bloc("then", Goto("exit")), Bloc("exit", Exit("mem"))) CheckFunc(fun.f) fuseLate(fun.f) for _, b := range fun.f.Blocks {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:45:54 UTC 2023 - 7.4K bytes - Viewed (0) -
src/cmd/go/internal/test/flagdefs.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/modindex/index_format.txt
synopsis - string offset name - string offset pkgName - string offset ignoreFile - int32 bool // report the file in Ignored(Go|Other)Files because there was an error reading it or parsing its build constraints. binaryOnly uint32 bool cgoDirectives string offset // the #cgo directive lines in the comment on import "C" goBuildConstraint - string offset len(plusBuildConstraints) - uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 13 00:22:50 UTC 2023 - 2.4K bytes - Viewed (0)