Home | History | Annotate | Download | only in testdata

Lines Matching refs:Println

147 	fmt.Println()                               // not an error
148 fmt.Println("%s", "hi") // ERROR "Println call has possible formatting directive %s"
149 fmt.Println("%v", "hi") // ERROR "Println call has possible formatting directive %v"
150 fmt.Println("0.0%") // correct (trailing % couldn't be a formatting directive)
201 fmt.Println(e.Error()) // ok
222 Println(someFunction) // ERROR "Println arg someFunction is a func value, not called"
256 // user-defined Println-like functions
260 ss.Println() // OK
261 ss.Println(1.234, "foo") // OK
262 ss.Println(1, someFunction) // no error "Println arg someFunction is a func value, not called"
277 // wrote Println but meant Fprintln
279 Println(os.Stdout, "hello") // ERROR "Println does not take io.Writer but has first arg os.Stdout"
289 // Log is non-variadic user-define Println-like function.
291 // for Println-like arguments.
294 // Error is variadic user-define Println-like function.
295 // Calls to this func mustn't be checked for Println-like arguments,
299 // Println is variadic user-defined Println-like function.
300 // Calls to this func must be checked for Println-like arguments.
301 func (ss *someStruct) Println(args ...interface{}) {}
303 // log is variadic user-defined Println-like function.
304 // Calls to this func must be checked for Println-like arguments.
316 // Println is used by the test so we must declare it.
317 func Println(args ...interface{}) {
564 fmt.Println("foo\n", "bar") // not an error
566 fmt.Println("foo\n") // ERROR "Println arg list ends with redundant newline"
567 fmt.Println("foo\\n") // not an error
568 fmt.Println(`foo\n`) // not an error