Added team database model.

This commit is contained in:
Patrick Fairbank
2014-05-24 00:39:22 -07:00
parent 562965a830
commit ac53c6a870
7 changed files with 223 additions and 0 deletions

15
database_test.go Normal file
View File

@@ -0,0 +1,15 @@
// Copyright 2014 Team 254. All Rights Reserved.
// Author: pat@patfairbank.com (Patrick Fairbank)
package main
import (
"testing"
)
func TestOpenUnreachableDatabase(t *testing.T) {
_, err := OpenDatabase("nonexistentdir/test.db")
if err == nil {
t.Errorf("Expected error not raised")
}
}