- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 230 for nilfunc (0.11 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/nilfunc.go
"golang.org/x/tools/internal/typeparams" ) //go:embed doc.go var doc string var Analyzer = &analysis.Analyzer{ Name: "nilfunc", Doc: analysisutil.MustExtractDoc(doc, "nilfunc"), URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilfunc", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/vet/testdata/nilfunc/nilfunc.go
// Copyright 2013 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. package nilfunc func F() {} func Comparison() { if F == nil { // ERROR "comparison of function F == nil is always false" panic("can't happen") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 313 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/doc.go
// license that can be found in the LICENSE file. // Package nilfunc defines an Analyzer that checks for useless // comparisons against nil. // // # Analyzer nilfunc // // nilfunc: check for useless comparisons between functions and nil // // A useless comparison is one like f == nil as opposed to f() == nil.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 437 bytes - Viewed (0) -
src/cmd/vet/main.go
"golang.org/x/tools/go/analysis/passes/ifaceassert" "golang.org/x/tools/go/analysis/passes/loopclosure" "golang.org/x/tools/go/analysis/passes/lostcancel" "golang.org/x/tools/go/analysis/passes/nilfunc" "golang.org/x/tools/go/analysis/passes/printf" "golang.org/x/tools/go/analysis/passes/shift" "golang.org/x/tools/go/analysis/passes/sigchanyzer" "golang.org/x/tools/go/analysis/passes/slog"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/go/internal/test/flagdefs.go
"errorsas": true, "framepointer": true, "httpresponse": true, "ifaceassert": true, "loopclosure": true, "lostcancel": true, "methods": true, "nilfunc": true, "printf": true, "rangeloops": true, "shift": true, "sigchanyzer": true, "slog": true, "stdmethods": true, "stdversion": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 2.2K bytes - Viewed (0) -
test/noinit.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 17:57:36 UTC 2023 - 6.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_vet.txt
# Test with a single analyzer ! go test -vet=httpresponse ./vetall/... stderr 'using resp before checking for errors' # Test with a list of analyzers go test -vet=atomic,bools,nilfunc ./vetall/... stdout 'm/vetall.*\[no tests to run\]' # Test issue #22890 go test m/vetcycle stdout 'm/vetcycle.*\[no test files\]' # Test with ... ! go test ./vetfail/... stderr 'Printf format %d'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 27 20:14:44 UTC 2021 - 2.1K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/vet.test
--- PASS: TestVet/5 (0.07s) vet_test.go:114: files: ["testdata/copylock_func.go" "testdata/rangeloop.go"] --- PASS: TestVet/3 (0.07s) vet_test.go:114: files: ["testdata/composite.go" "testdata/nilfunc.go"] --- PASS: TestVet/6 (0.07s) vet_test.go:114: files: ["testdata/copylock_range.go" "testdata/shadow.go"] --- PASS: TestVet/2 (0.07s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 01 16:13:47 UTC 2020 - 3.1K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/smiley.test
--- PASS: Test☺☹/5 (0.07s) vet_test.go:114: φιλεσ: ["testdata/copylock_func.go" "testdata/rangeloop.go"] --- PASS: Test☺☹/3 (0.07s) vet_test.go:114: φιλεσ: ["testdata/composite.go" "testdata/nilfunc.go"] --- PASS: Test☺☹/6 (0.07s) vet_test.go:114: φιλεσ: ["testdata/copylock_range.go" "testdata/shadow.go"] --- PASS: Test☺☹/2 (0.07s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 01 16:13:47 UTC 2020 - 3.3K bytes - Viewed (0) -
src/cmd/vet/doc.go
loopclosure check references to loop variables from within nested functions lostcancel check cancel func returned by context.WithCancel is called nilfunc check for useless comparisons between functions and nil printf check consistency of Printf format strings and arguments shift check for shifts that equal or exceed the width of the integer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 00:17:30 UTC 2023 - 3.8K bytes - Viewed (0)