Re-struct pkg/api, pkg/database
This commit is contained in:
11
pkg/api/api_test.go
Normal file
11
pkg/api/api_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package api
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestAPI(t *testing.T) {
|
||||
api, err := NewAPI("/tmp/test.sqlite3", ":8080")
|
||||
if err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
t.Fatal(api.Server.ListenAndServe())
|
||||
}
|
||||
Reference in New Issue
Block a user