Skip to content

Commit

Permalink
Merge pull request #86 from Abirdcfly/main
Browse files Browse the repository at this point in the history
fix minor unreachable code
  • Loading branch information
coolwxb authored Sep 20, 2023
2 parents 8a7e867 + 6c97362 commit d5fc326
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions algorithm/overlay/sweepline/sweep_line_index_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Package sweepline Contains struct which implement a sweepline algorithm for scanning geometric data structures.
// Package sweepline Contains struct which implement a sweepline algorithm for scanning geometric data structures.
package sweepline

import (
Expand All @@ -16,8 +16,8 @@ func TestMain(m *testing.M) {
fmt.Println("test start")
buildTree()
code := m.Run()
os.Exit(code)
fmt.Println("test end")
os.Exit(code)
}
func buildTree() *Index {
var ms matrix.LineMatrix = matrix.LineMatrix{{1, 1}, {1.5, 1}, {2, 1}, {2, 2}, {2, 3}, {3, 3}}
Expand Down
2 changes: 1 addition & 1 deletion index/hprtree/hpr_tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func TestMain(m *testing.M) {
fmt.Println("test start")
buildTree()
code := m.Run()
os.Exit(code)
fmt.Println("test end")
os.Exit(code)
}
func buildTree() *HPRTree {
indexTree = NewHPRTree()
Expand Down
2 changes: 1 addition & 1 deletion index/intervalrtree/sorted_packed_interval_rtree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func TestMain(m *testing.M) {
fmt.Println("test start")
buildTree()
code := m.Run()
os.Exit(code)
fmt.Println("test end")
os.Exit(code)
}
func buildTree() *SortedPackedIntervalRTree {
indexTree = &SortedPackedIntervalRTree{}
Expand Down
2 changes: 1 addition & 1 deletion index/kdtree/kd_tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ func TestMain(m *testing.M) {
fmt.Println("test start")
buildTree()
code := m.Run()
os.Exit(code)
fmt.Println("test end")
os.Exit(code)
}

func buildTree() *KdTree {
Expand Down
2 changes: 1 addition & 1 deletion index/quadtree/quadtree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func TestMain(m *testing.M) {
}
fmt.Println("test start")
code := m.Run()
os.Exit(code)
fmt.Println("test end")
os.Exit(code)
}
func TestQuadtree_Insert(t *testing.T) {
line := matrix.LineMatrix{{5, 5}, {10, 8}}
Expand Down

1 comment on commit d5fc326

@pipipizhuqaq
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyword

Please sign in to comment.