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)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|