@@ -48,7 +48,8 @@ var _ = Describe("print functions", func() {
4848 w .Close ()
4949
5050 var buf bytes.Buffer
51- io .Copy (& buf , r )
51+ _ , err = io .Copy (& buf , r )
52+ Expect (err ).ToNot (HaveOccurred ())
5253
5354 return buf .String ()
5455 }
@@ -63,19 +64,19 @@ var _ = Describe("print functions", func() {
6364
6465 It ("should parse and process markdown style in Print" , func () {
6566 Expect (captureStdout (func () {
66- Print ("This should be *bold*." )
67+ _ , _ = Print ("This should be *bold*." )
6768 })).To (BeEquivalentTo ("This should be \x1b [1mbold\x1b [0m." ))
6869 })
6970
7071 It ("should parse and process markdown style in Printf" , func () {
7172 Expect (captureStdout (func () {
72- Printf ("This should be *%s*." , "bold" )
73+ _ , _ = Printf ("This should be *%s*." , "bold" )
7374 })).To (BeEquivalentTo ("This should be \x1b [1mbold\x1b [0m." ))
7475 })
7576
7677 It ("should parse and process markdown style in Println" , func () {
7778 Expect (captureStdout (func () {
78- Println ("This should be *bold*." )
79+ _ , _ = Println ("This should be *bold*." )
7980 })).To (BeEquivalentTo ("This should be \x1b [1mbold\x1b [0m.\n " ))
8081 })
8182 })
@@ -99,19 +100,19 @@ var _ = Describe("print functions", func() {
99100 })
100101
101102 It ("should parse and process markdown style in Fprint" , func () {
102- Fprint (out , "This should be *bold*." )
103+ _ , _ = Fprint (out , "This should be *bold*." )
103104 out .Flush ()
104105 Expect (buf .String ()).To (BeEquivalentTo ("This should be \x1b [1mbold\x1b [0m." ))
105106 })
106107
107108 It ("should parse and process markdown style in Fprintf" , func () {
108- Fprintf (out , "This should be *%s*." , "bold" )
109+ _ , _ = Fprintf (out , "This should be *%s*." , "bold" )
109110 out .Flush ()
110111 Expect (buf .String ()).To (BeEquivalentTo ("This should be \x1b [1mbold\x1b [0m." ))
111112 })
112113
113114 It ("should parse and process markdown style in Fprintln" , func () {
114- Fprintln (out , "This should be *bold*." )
115+ _ , _ = Fprintln (out , "This should be *bold*." )
115116 out .Flush ()
116117 Expect (buf .String ()).To (BeEquivalentTo ("This should be \x1b [1mbold\x1b [0m.\n " ))
117118 })
0 commit comments