-
Notifications
You must be signed in to change notification settings - Fork 0
/
goquest_test.go
63 lines (54 loc) · 1.57 KB
/
goquest_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
//
// ______ _ _ _ __ _ _ ____ ___
// | ____| | | | | | |/ _| | | | | |___ \ / _ \
// | |__ __ _| |_| |__ __ _| | |_ __ _| |_| |__ __) | | | |
// | __/ _` | __| '_ \ / _` | | _/ _` | __| '_ \ |__ <| | | |
// | | | (_| | |_| | | | (_| | | || (_| | |_| | | |___) | |_| |
// |_| \__,_|\__|_| |_|\__,_|_|_| \__,_|\__|_| |_|____/ \___/
//
// Written by Fathalfath30.
// Email : fathalfath30@gmail.com
// Follow me on:
// Github : https://github.com/fathalfath30
// Gitlab : https://gitlab.com/Fathalfath30
//
*/
package goquest_test
import (
"context"
"github.com/stretchr/testify/suite"
"testing"
)
// GoQuesTestSuite is used to simplify generating test case
type (
GoQuesTestSuite struct {
suite.Suite
t *testing.T
ctx context.Context
}
)
// Test_RunGoQuesTestSuite Running the test suite
func Test_RunGoQuesTestSuite(t *testing.T) {
suite.Run(t, &GoQuesTestSuite{t: t})
}
// SetupSuite this function executes before the test suite begins
// execution
func (ts *GoQuesTestSuite) SetupSuite() {
// set StartingNumber to one
}
// TearDownSuite which will run after all the tests in the suite
// have been run.
func (ts *GoQuesTestSuite) TearDownSuite() {
// todo: TearDownSuite
}
// SetupTest SetupTestSuite has a SetupTest method, which will run
// before each test in the suite.
func (ts *GoQuesTestSuite) SetupTest() {
ts.ctx = context.Background()
}
// TearDownTest TearDownTestSuite has a TearDownTest method, which
// will run after each test in the suite.
func (ts *GoQuesTestSuite) TearDownTest() {
// todo: TearDownTest
}