You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package includes support for generating test variable declarations through the TestVarDecl method. Test variables are predefined values with associated types and names that can be reused across multiple test cases to ensure consistency. The FindTestVar helper function allows you to retrieve a specific test variable by its type from an array of TestVar structs.
81
+
82
+
```go
83
+
func (code *Code) TestVarDecl(tv []TestVar) *Code
84
+
func FindTestVar(t string, tv []TestVar) (*TestVar, error)
0 commit comments