stringMatchesPattern check whether testString matches pattern with asterisks. Standard regexp functionality is not used here because of performance issues.
(patternparts []string, testString string)
Source from the content-addressed store, hash-verified