MCPcopy Create free account
hub / github.com/upper/db / BeforeTest

Method BeforeTest

internal/testsuite/sql_suite.go:73–89  ·  view source on GitHub ↗
(suiteName, testName string)

Source from the content-addressed store, hash-verified

71}
72
73func (s *SQLTestSuite) BeforeTest(suiteName, testName string) {
74 err := s.SetUp()
75 s.NoError(err)
76
77 sess := s.Session()
78
79 // Creating test data
80 artist := sess.Collection("artist")
81
82 artistNames := []string{"Ozzie", "Flea", "Slash", "Chrono"}
83 for _, artistName := range artistNames {
84 _, err := artist.Insert(map[string]string{
85 "name": artistName,
86 })
87 s.NoError(err)
88 }
89}
90
91func (s *SQLTestSuite) TestPreparedStatementsCache() {
92 sess := s.Session()

Callers

nothing calls this directly

Calls 4

SetUpMethod · 0.65
SessionMethod · 0.65
CollectionMethod · 0.65
InsertMethod · 0.65

Tested by

no test coverage detected