284ccd608f06ac8c0222b56011aaf22bc7889d77
braney
  Sat Sep 26 12:12:04 2026 -0700
hg/lib tests: VCF INFO filters and colors, and trackHubSkipHubName on names with no second underscore, refs #37617, #37618, #38414

vcfInfoFilterTester reads a five-line VCF and builds each filter and color map from a
hand-made trackDb and cart: filter.*, filterText.* and filterValues.* on INFO fields and
on vep sub-fields, colorByInfo with the first-declared value winning, and the warning for
each setting the VCF header cannot support.  trackHubSkipHubNameTester checks where the
returned pointer lands before reading through it.

diff --git src/hg/lib/tests/expected/trackHubSkipHubNameTest src/hg/lib/tests/expected/trackHubSkipHubNameTest
new file mode 100644
index 00000000000..f9b2e516966
--- /dev/null
+++ src/hg/lib/tests/expected/trackHubSkipHubNameTest
@@ -0,0 +1,18 @@
+a hub track name loses its hub_<id>_ prefix
+  hub_12_myTrack                   -> "myTrack"
+  hub_12_my_track_name             -> "my_track_name"
+  hub_12_                          -> ""
+  hub__myTrack                     -> "myTrack"
+
+a name that starts hub_ with no second underscore is returned whole
+  hub_12                           -> the whole name
+  hub_                             -> the whole name
+  hub_myTrack                      -> the whole name
+
+any other name is returned whole
+  knownGene                        -> the whole name
+  myhub_12_track                   -> the whole name
+  HUB_12_track                     -> the whole name
+  hub                              -> the whole name
+  (empty string)                   -> the whole name
+  NULL                             -> NULL