test_class.file: central/src/test/java/org/glowroot/central/repo/AgentRollupIdsTest.java
test_class.identifier: AgentRollupIdsTest
test_case.body: @Test
      public void shouldGetAgentRollupParent() {
          assertThat(AgentRollupIds.getParent("aaa")).isNull();
          assertThat(AgentRollupIds.getParent("aaa::")).isNull();
          assertThat(AgentRollupIds.getParent("aaa::bbb")).isEqualTo("aaa::");
          assertThat(AgentRollupIds.getParent("aaa::bbb::")).isEqualTo("aaa::");
          assertThat(AgentRollupIds.getParent("aaa::bbb::ccc")).isEqualTo("aaa::bbb::");
          assertThat(AgentRollupIds.getParent("aaa::bbb::ccc::")).isEqualTo("aaa::bbb::");
  
          assertThat(AgentRollupIds.getParent("aaa:::")).isNull();
          assertThat(AgentRollupIds.getParent("aaa:::bbb")).isEqualTo("aaa:::");
          assertThat(AgentRollupIds.getParent("aaa:::bbb:::")).isEqualTo("aaa:::");
          assertThat(AgentRollupIds.getParent("aaa:::bbb:::ccc")).isEqualTo("aaa:::bbb:::");
          assertThat(AgentRollupIds.getParent("aaa:::bbb:::ccc:::")).isEqualTo("aaa:::bbb:::");
  
          assertThat(AgentRollupIds.getParent("aaa::::")).isNull();
          assertThat(AgentRollupIds.getParent("aaa::::bbb")).isEqualTo("aaa::::");
          assertThat(AgentRollupIds.getParent("aaa::::bbb::::")).isEqualTo("aaa::::");
          assertThat(AgentRollupIds.getParent("aaa::::bbb::::ccc")).isEqualTo("aaa::::bbb::::");
          assertThat(AgentRollupIds.getParent("aaa::::bbb::::ccc::::")).isEqualTo("aaa::::bbb::::");
  
          assertThat(AgentRollupIds.getParent("aaa:::::")).isEqualTo("aaa::");
          assertThat(AgentRollupIds.getParent("aaa:::::bbb")).isEqualTo("aaa:::::");
          assertThat(AgentRollupIds.getParent("aaa:::::bbb:::::")).isEqualTo("aaa:::::bbb::");
          assertThat(AgentRollupIds.getParent("aaa:::::bbb:::::ccc")).isEqualTo("aaa:::::bbb:::::");
          assertThat(AgentRollupIds.getParent("aaa:::::bbb:::::ccc:::::"))
                  .isEqualTo("aaa:::::bbb:::::ccc::");
  
          assertThat(AgentRollupIds.getParent(":")).isNull();
          assertThat(AgentRollupIds.getParent("::")).isNull();
          assertThat(AgentRollupIds.getParent(":::")).isNull();
          assertThat(AgentRollupIds.getParent("::::")).isNull();
          assertThat(AgentRollupIds.getParent(":::::")).isNull();
          assertThat(AgentRollupIds.getParent("::::::")).isEqualTo(":::");
      }
test_case.class_method_signature: AgentRollupIdsTest.shouldGetAgentRollupParent()
test_case.full_signature: @Test public void shouldGetAgentRollupParent()
test_case.identifier: shouldGetAgentRollupParent
test_case.invocations: isNull assertThat getParent isNull assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isNull assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isNull assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isEqualTo assertThat getParent isNull assertThat getParent isNull assertThat getParent isNull assertThat getParent isNull assertThat getParent isNull assertThat getParent isEqualTo assertThat getParent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldGetAgentRollupParent()
focal_class.file: central/src/main/java/org/glowroot/central/repo/AgentRollupIds.java
focal_class.identifier: AgentRollupIds
focal_class.class_method_signature: AgentRollupIds.AgentRollupIds()
focal_class.full_signature: private  AgentRollupIds()
focal_class.identifier: AgentRollupIds
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  AgentRollupIds()
focal_class.class_method_signature: AgentRollupIds.getAgentRollupIds(String agentRollupId)
focal_class.full_signature: public static List<String> getAgentRollupIds(String agentRollupId)
focal_class.identifier: getAgentRollupIds
focal_class.modifiers: public static
focal_class.parameters: (String agentRollupId)
focal_class.return: List<String>
focal_class.signature: List<String> getAgentRollupIds(String agentRollupId)
focal_class.class_method_signature: AgentRollupIds.getParent(String agentRollupId)
focal_class.full_signature: static @Nullable String getParent(String agentRollupId)
focal_class.identifier: getParent
focal_class.modifiers: static @Nullable
focal_class.parameters: (String agentRollupId)
focal_class.return: String
focal_class.signature: String getParent(String agentRollupId)
focal_method.body: static @Nullable String getParent(String agentRollupId) {
          int index;
          if (agentRollupId.endsWith("::")) {
              index = agentRollupId.lastIndexOf("::", agentRollupId.length() - 5);
          } else {
              index = agentRollupId.lastIndexOf("::");
          }
          if (index == -1 || index == 0) {
              return null;
          }
          return agentRollupId.substring(0, index + 2);
      }
focal_method.class_method_signature: AgentRollupIds.getParent(String agentRollupId)
focal_method.full_signature: static @Nullable String getParent(String agentRollupId)
focal_method.identifier: getParent
focal_method.invocations: endsWith lastIndexOf length lastIndexOf substring
focal_method.modifiers: static @Nullable
focal_method.parameters: (String agentRollupId)
focal_method.return: String
focal_method.signature: String getParent(String agentRollupId)