Debian Codegraph @

test_cases/stop.test.go

raw symbols SCIP
1 // Copyright 2015 Aaron Jacobs. All Rights Reserved.
2 // Author: [email protected] (Aaron Jacobs)
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15
16 package oglematchers_test
17
18 import (
19 "fmt"
20 "testing"
21
22 . "github.com/jacobsa/ogletest"
23 )
24
25 func TestStop(t *testing.T) { RunTests(t) }
26
27 ////////////////////////////////////////////////////////////////////////
28 // Boilerplate
29 ////////////////////////////////////////////////////////////////////////
30
31 type StopTest struct {
32 }
33
34 var _ TearDownInterface = &StopTest{}
35 var _ TearDownTestSuiteInterface = &StopTest{}
36
37 func init() { RegisterTestSuite(&StopTest{}) }
38
39 func (t *StopTest) TearDown() {
40 fmt.Println("TearDown running.")
41 }
42
43 func (t *StopTest) TearDownTestSuite() {
44 fmt.Println("TearDownTestSuite running.")
45 }
46
47 ////////////////////////////////////////////////////////////////////////
48 // Tests
49 ////////////////////////////////////////////////////////////////////////
50
51 func (t *StopTest) First() {
52 }
53
54 func (t *StopTest) Second() {
55 fmt.Println("About to call StopRunningTests.")
56 StopRunningTests()
57 fmt.Println("Called StopRunningTests.")
58 }
59
60 func (t *StopTest) Third() {
61 }