diff options
author | Emile <hanemile@protonmail.com> | 2019-02-16 19:56:37 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-02-16 19:56:37 +0100 |
commit | 0c52ba8576f6b67adbd5128e51c7effc067be7c6 (patch) | |
tree | 74f0a66ac5631d01d8a830e9897f6ef4d7c1bfda | |
parent | b60ebe7b1f5b0c1eab011bd6a2137322e0c7a838 (diff) |
deleting all the nodes before inserting new stars in the tree
-rw-r--r-- | db_actions_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db_actions_test.go b/db_actions_test.go index 230093a..07dd2d3 100644 --- a/db_actions_test.go +++ b/db_actions_test.go @@ -144,6 +144,13 @@ func TestInsertStar(t *testing.T) { db = ConnectToDB() db.SetMaxOpenConns(75) + // delete all preexisting stars and nodes + DeleteAllStars(db) + DeleteAllNodes(db) + + // create a new tree with a width of 1000 + NewTree(db, 1000) + type args struct { database *sql.DB star structs.Star2D |