test_class.file: oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/search/util/NodeStateClonerTest.java
test_class.identifier: NodeStateClonerTest
test_case.body: @Test
      public void excludeHidden() throws Exception{
          NodeBuilder builder = EMPTY_NODE.builder();
          builder.child("a").child(":b").child("e");
          builder.child("a").child("c").child(":d");
          builder.child("a").setProperty("foo", "bar");
  
          NodeState source = builder.getNodeState();
          NodeState cloned = NodeStateCloner.cloneVisibleState(source);
  
          assertFalse(NodeStateUtils.getNode(cloned, "/a/:b").exists());
          assertFalse(NodeStateUtils.getNode(cloned, "/a/:b/e").exists());
          assertFalse(NodeStateUtils.getNode(cloned, "/a/c/:d").exists());
  
          assertTrue(NodeStateUtils.getNode(cloned, "/a/c").exists());
          assertTrue(NodeStateUtils.getNode(cloned, "/a").hasProperty("foo"));
  
          assertFalse(EqualsDiff.equals(source, cloned));
      }
test_case.class_method_signature: NodeStateClonerTest.excludeHidden()
test_case.full_signature: @Test public void excludeHidden()
test_case.identifier: excludeHidden
test_case.invocations: builder child child child child child child setProperty child getNodeState cloneVisibleState assertFalse exists getNode assertFalse exists getNode assertFalse exists getNode assertTrue exists getNode assertTrue hasProperty getNode assertFalse equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void excludeHidden()
focal_class.file: oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/util/NodeStateCloner.java
focal_class.identifier: NodeStateCloner
focal_class.class_method_signature: NodeStateCloner.NodeStateCloner()
focal_class.full_signature: private  NodeStateCloner()
focal_class.identifier: NodeStateCloner
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  NodeStateCloner()
focal_class.class_method_signature: NodeStateCloner.cloneVisibleState(NodeState state)
focal_class.full_signature: public static NodeState cloneVisibleState(NodeState state)
focal_class.identifier: cloneVisibleState
focal_class.modifiers: public static
focal_class.parameters: (NodeState state)
focal_class.return: NodeState
focal_class.signature: NodeState cloneVisibleState(NodeState state)
focal_method.body: public static NodeState cloneVisibleState(NodeState state){
          NodeBuilder builder = EMPTY_NODE.builder();
          new ApplyVisibleDiff(builder).apply(state);
          return builder.getNodeState();
      }
focal_method.class_method_signature: NodeStateCloner.cloneVisibleState(NodeState state)
focal_method.full_signature: public static NodeState cloneVisibleState(NodeState state)
focal_method.identifier: cloneVisibleState
focal_method.invocations: builder apply getNodeState
focal_method.modifiers: public static
focal_method.parameters: (NodeState state)
focal_method.return: NodeState
focal_method.signature: NodeState cloneVisibleState(NodeState state)