Skip to content

Commit

Permalink
feat: update learning notes 2025-01-30 14:15:09
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Jan 30, 2025
1 parent aa4bc10 commit 13df56f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions content/Programming Languages/Go/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,19 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
"github.com/stretchr/testify/suite"
)

type MyTestSuite struct {
suite.Suite
// Add fields here for setup/teardown if needed
// Example: db *sql.DB
suite.Suite
// Add fields here for setup/teardown if needed
// Example: db *sql.DB
}

func (s *MyTestSuite) SetupSuite() {
// This runs once before all tests in the suite
// Example: s.db = connectToDatabase()
println("SetupSuite")

}

func (s *MyTestSuite) TearDownSuite() {
Expand Down

0 comments on commit 13df56f

Please sign in to comment.