LEFT | RIGHT |
1 // These tests check that the foundations of gocheck are working properly. | 1 // These tests check that the foundations of gocheck are working properly. |
2 // They already assume that fundamental failing is working already, though, | 2 // They already assume that fundamental failing is working already, though, |
3 // since this was tested in bootstrap_test.go. Even then, some care may | 3 // since this was tested in bootstrap_test.go. Even then, some care may |
4 // still have to be taken when using external functions, since they should | 4 // still have to be taken when using external functions, since they should |
5 // of course not rely on functionality tested here. | 5 // of course not rely on functionality tested here. |
6 | 6 |
7 package gocheck_test | 7 package gocheck_test |
8 | 8 |
9 import ( | 9 import ( |
10 "fmt" | 10 "fmt" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 func (s *EmbeddedInternalS) TestMethod(c *gocheck.C) { | 327 func (s *EmbeddedInternalS) TestMethod(c *gocheck.C) { |
328 c.Error("TestMethod() of the embedded type was called!?") | 328 c.Error("TestMethod() of the embedded type was called!?") |
329 } | 329 } |
330 | 330 |
331 func (s *EmbeddedS) TestMethod(c *gocheck.C) { | 331 func (s *EmbeddedS) TestMethod(c *gocheck.C) { |
332 // http://code.google.com/p/go/issues/detail?id=906 | 332 // http://code.google.com/p/go/issues/detail?id=906 |
333 c.Check(s.called, gocheck.Equals, false) // Go issue 906 is affecting th
e runner? | 333 c.Check(s.called, gocheck.Equals, false) // Go issue 906 is affecting th
e runner? |
334 s.called = true | 334 s.called = true |
335 } | 335 } |
LEFT | RIGHT |