Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(321)

Side by Side Diff: cmd/vet/testdata/composite.go

Issue 12507043: code review 12507043: cmd/vet: add an "unused" module (Closed)
Patch Set: diff -r 400755f06d55 https://code.google.com/p/go.tools Created 11 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // This file contains tests for the untagged struct literal checker. 5 // This file contains tests for the untagged struct literal checker.
6 6
7 // This file contains the test for untagged struct literals. 7 // This file contains the test for untagged struct literals.
8 8
9 package testdata 9 package testdata
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 "Name", 54 "Name",
55 "Usage", 55 "Usage",
56 nil, // Value 56 nil, // Value
57 "DefValue", 57 "DefValue",
58 } 58 }
59 59
60 // Used to test the check for slices and arrays: If that test is disabled and 60 // Used to test the check for slices and arrays: If that test is disabled and
61 // vet is run with --compositewhitelist=false, this line triggers an error. 61 // vet is run with --compositewhitelist=false, this line triggers an error.
62 // Clumsy but sufficient. 62 // Clumsy but sufficient.
63 var scannerErrorListTest = scanner.ErrorList{nil, nil} 63 var scannerErrorListTest = scanner.ErrorList{nil, nil}
64
65 var _ = scannerErrorListTest // Silence the "unused" test.
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b