1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
15 func (T) Scan(x fmt.ScanState, c byte) {} // want `should have signature Scan\(fmt\.ScanState, rune\) error`
17 func (T) Format(fmt.State, byte) {} // want `should have signature Format\(fmt.State, rune\)`
21 func (U) Format(byte) {} // no error: first parameter must be fmt.State to trigger check
23 func (U) GobDecode() {} // want `should have signature GobDecode\(\[\]byte\) error`
25 // Test rendering of type names such as xml.Encoder in diagnostic.
26 func (U) MarshalXML(*xml.Encoder) {} // want `method MarshalXML\(\*xml.Encoder\) should...`
28 func (U) UnmarshalXML(*xml.Decoder, xml.StartElement) error { // no error: signature matches xml.Unmarshaler
32 func (U) WriteTo(w io.Writer) {} // want `method WriteTo\(w io.Writer\) should have signature WriteTo\(io.Writer\) \(int64, error\)`
34 func (T) WriteTo(w io.Writer, more, args int) {} // ok - clearly not io.WriterTo
37 ReadByte() byte // want `should have signature ReadByte\(\) \(byte, error\)`