-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathutil_test.go
77 lines (59 loc) · 1.3 KB
/
util_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package store4
import
// . "github.com/jimsmart/store4"
. "github.com/onsi/ginkgo"
// . "github.com/onsi/gomega"
var _ = Describe("util functions", func() {
// Describe("SortQuads", func() {
// quads := []*Quad{
// {"s3", "p3", "o5", "g3"},
// {"s2", "p2", "o4", "g2"},
// {"s2", "p2", "o3", "g1"},
// {"s1", "p1", "o2", "g1"},
// {"s1", "p0", "o1", "g1"},
// {"s1", "p1", "o1", "g1"},
// }
// It("should not prevent 100% coverage", func() {
// SortQuads(quads)
// })
// })
// Describe("SortTriples", func() {
// triples := []*Triple{
// {"s3", "p3", "o5"},
// {"s2", "p2", "o4"},
// {"s2", "p2", "o3"},
// {"s1", "p1", "o2"},
// {"s1", "p0", "o1"},
// {"s1", "p1", "o1"},
// }
// It("should not prevent 100% coverage", func() {
// SortTriples(triples)
// })
// })
// Describe("SortTuples", func() {
// tuples := []*Tuple{
// {"p3", "o5"},
// {"p2", "o4"},
// {"p2", "o3"},
// {"p1", "o2"},
// {"p0", "o1"},
// {"p1", "o1"},
// }
// It("should not prevent 100% coverage", func() {
// SortTuples(tuples)
// })
// })
Describe("sortObjects", func() {
objects := []interface{}{
"o5",
"o4",
"o3",
"o2",
"o1",
"o1",
}
It("should not prevent 100% coverage", func() {
sortObjects(objects)
})
})
})