SoXX
30fa03ef9a
All checks were successful
Gitea Build Check / Build (push) Successful in 10m40s
Signed-off-by: SoXX <soxx@fenpa.ws>
27 lines
429 B
Go
27 lines
429 B
Go
package database
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestNewPostgresqlConnection(t *testing.T) {
|
|
// Test
|
|
tests := []struct {
|
|
name string
|
|
want OtterSpace
|
|
}{
|
|
{
|
|
name: "Test 1: Create new postgresql connection",
|
|
want: nil,
|
|
},
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if tt.want != NewPostgresqlConnection() {
|
|
} else {
|
|
t.Errorf("NewPostgresqlConnection() = %s", tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|