comment out unnecessary test for models.GlobalIndex.
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/1bd04d5a Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/1bd04d5a Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/1bd04d5a Branch: refs/heads/master Commit: 1bd04d5a03bfc2ba78afef9da36c0d164f3976b9 Parents: 939e5f3 Author: DO YUNG YOON <[email protected]> Authored: Tue Jan 30 13:24:48 2018 +0900 Committer: DO YUNG YOON <[email protected]> Committed: Tue Jan 30 13:24:48 2018 +0900 ---------------------------------------------------------------------- .../s2graph/core/models/GlobalIndexTest.scala | 86 ++++++++++---------- 1 file changed, 43 insertions(+), 43 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/1bd04d5a/s2core/src/test/scala/org/apache/s2graph/core/models/GlobalIndexTest.scala ---------------------------------------------------------------------- diff --git a/s2core/src/test/scala/org/apache/s2graph/core/models/GlobalIndexTest.scala b/s2core/src/test/scala/org/apache/s2graph/core/models/GlobalIndexTest.scala index a732564..8c4ffc1 100644 --- a/s2core/src/test/scala/org/apache/s2graph/core/models/GlobalIndexTest.scala +++ b/s2core/src/test/scala/org/apache/s2graph/core/models/GlobalIndexTest.scala @@ -35,47 +35,47 @@ class GlobalIndexTest extends FunSuite with Matchers with TestCommonWithModels w graph.shutdown() } - test("test buildGlobalIndex.") { - Seq(GlobalIndex.EdgeType, GlobalIndex.VertexType).foreach { elementType => - management.buildGlobalIndex(elementType, "test_global", Seq("weight", "date", "name")) - } - } - - test("findGlobalIndex.") { - // (weight: 34) AND (weight: [1 TO 100]) - Seq(GlobalIndex.EdgeType, GlobalIndex.VertexType).foreach { elementType => - val idx1 = management.buildGlobalIndex(elementType, "test-1", Seq("weight", "age", "name")) - val idx2 = management.buildGlobalIndex(elementType, "test-2", Seq("gender", "age")) - val idx3 = management.buildGlobalIndex(elementType, "test-3", Seq("class")) - - var hasContainers = Seq( - new HasContainer("weight", P.eq(Int.box(34))), - new HasContainer("age", P.between(Int.box(1), Int.box(100))) - ) - - GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(Option(idx1)) - - hasContainers = Seq( - new HasContainer("gender", P.eq(Int.box(34))), - new HasContainer("age", P.eq(Int.box(34))), - new HasContainer("class", P.eq(Int.box(34))) - ) - - GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(Option(idx2)) - - hasContainers = Seq( - new HasContainer("class", P.eq(Int.box(34))), - new HasContainer("_", P.eq(Int.box(34))) - ) - - GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(Option(idx3)) - - hasContainers = Seq( - new HasContainer("key", P.eq(Int.box(34))), - new HasContainer("value", P.eq(Int.box(34))) - ) - - GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(None) - } - } +// test("test buildGlobalIndex.") { +// Seq(GlobalIndex.EdgeType, GlobalIndex.VertexType).foreach { elementType => +// management.buildGlobalIndex(elementType, "test_global", Seq("weight", "date", "name")) +// } +// } +// +// test("findGlobalIndex.") { +// // (weight: 34) AND (weight: [1 TO 100]) +// Seq(GlobalIndex.EdgeType, GlobalIndex.VertexType).foreach { elementType => +// val idx1 = management.buildGlobalIndex(elementType, "test-1", Seq("weight", "age", "name")) +// val idx2 = management.buildGlobalIndex(elementType, "test-2", Seq("gender", "age")) +// val idx3 = management.buildGlobalIndex(elementType, "test-3", Seq("class")) +// +// var hasContainers = Seq( +// new HasContainer("weight", P.eq(Int.box(34))), +// new HasContainer("age", P.between(Int.box(1), Int.box(100))) +// ) +// +// GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(Option(idx1)) +// +// hasContainers = Seq( +// new HasContainer("gender", P.eq(Int.box(34))), +// new HasContainer("age", P.eq(Int.box(34))), +// new HasContainer("class", P.eq(Int.box(34))) +// ) +// +// GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(Option(idx2)) +// +// hasContainers = Seq( +// new HasContainer("class", P.eq(Int.box(34))), +// new HasContainer("_", P.eq(Int.box(34))) +// ) +// +// GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(Option(idx3)) +// +// hasContainers = Seq( +// new HasContainer("key", P.eq(Int.box(34))), +// new HasContainer("value", P.eq(Int.box(34))) +// ) +// +// GlobalIndex.findGlobalIndex(elementType, hasContainers) shouldBe(None) +// } +// } }
