github.com/waldiirawan/apm-agent-go/v2@v2.2.2/internal/testdata/json-specs/wildcard_matcher_tests.json (about)

     1  {
     2    "testMatchesStartsWith": {
     3      "foo*": {
     4        "foo": true,
     5        "foobar": true,
     6        "bar": false,
     7        "barfoo": false,
     8        "rfoo": false
     9      }
    10    },
    11    "testWildcardInTheMiddle": {
    12      "/foo/*/baz": {
    13        "/foo/bar/baz": true,
    14        "/foo/bar": false
    15      }
    16    },
    17    "testCompoundWildcardMatcher": {
    18      "*foo*foo*": {
    19        "foofoo": true,
    20        "foo/bar/foo": true,
    21        "/foo/bar/foo/bar": true,
    22        "foo": false
    23      }
    24    },
    25    "testCompoundWildcardMatcher3": {
    26      "*foo*oo*": {
    27        "foooo": true,
    28        "foofoo": true,
    29        "foo/bar/foo": true,
    30        "/foo/bar/foo/bar": true,
    31        "foo": false,
    32        "fooo": false
    33      }
    34    },
    35    "testCompoundWildcardMatcher2": {
    36      "*foo*bar*": {
    37        "foobar": true,
    38        "foo/bar/foo/baz": true,
    39        "/foo/bar/baz": true,
    40        "bar/foo": false,
    41        "barfoo": false
    42      }
    43    },
    44    "testCompoundWildcardMatcher4": {
    45      "*foo*far*": {
    46        "foofar": true,
    47        "foo/far/foo/baz": true,
    48        "/foo/far/baz": true,
    49        "/far/foo": false,
    50        "farfoo": false
    51      }
    52    },
    53    "testMatchBetween": {
    54      "*foo*foo*": {
    55        "foofoo": true,
    56        "foo/foo/foo/baz": true,
    57        "/foo/foo/baz": true,
    58        "/foo/foo": true,
    59        "foobar": false
    60      }
    61    },
    62    "testComplexExpressions": {
    63      "/foo/*/baz*": {
    64        "/foo/a/bar/b/baz": true
    65      },
    66      "/foo/*/bar/*/baz": {
    67        "/foo/a/bar/b/baz": true
    68      }
    69    },
    70    "testInfixEmptyMatcher": {
    71      "**": {
    72        "": true,
    73        "foo": true
    74      }
    75    },
    76    "testMatchesEndsWith": {
    77      "*foo": {
    78        "foo": true,
    79        "foobar": false,
    80        "bar": false,
    81        "barfoo": true,
    82        "foor": false
    83      }
    84    },
    85    "testMatchesEquals": {
    86      "foo": {
    87        "foo": true,
    88        "foobar": false,
    89        "bar": false,
    90        "barfoo": false
    91      }
    92    },
    93    "testMatchesInfix": {
    94      "*foo*": {
    95        "foo": true,
    96        "foobar": true,
    97        "bar": false,
    98        "barfoo": true,
    99        "barfoobaz": true
   100      }
   101    },
   102    "testMatchesNoWildcard": {
   103      "foo": {
   104        "foo": true,
   105        "foobar": false
   106      }
   107    },
   108    "testMatchesStartsWith_ignoreCase": {
   109      "foo*": {
   110        "foo": true,
   111        "foobar": true,
   112        "bar": false,
   113        "barfoo": false
   114      }
   115    },
   116    "testInfixEmptyMatcher_ignoreCase": {
   117      "**": {
   118        "": true,
   119        "foo": true
   120      }
   121    },
   122    "testMatchesEndsWith_ignoreCase": {
   123      "*foo": {
   124        "fOo": true,
   125        "foobar": false,
   126        "bar": false,
   127        "baRFoo": true
   128      }
   129    },
   130    "testMatchesEquals_ignoreCase": {
   131      "foo": {
   132        "fOo": true,
   133        "foOBar": false,
   134        "BAR": false,
   135        "barfoo": false
   136      }
   137    },
   138    "testMatchesInfix_ignoreCase": {
   139      "*foo*": {
   140        "FOO": true,
   141        "foOBar": true,
   142        "BAR": false,
   143        "baRFOo": true,
   144        "BARFOOBAZ": true
   145      }
   146    },
   147    "testMatchesInfix_caseSensitive": {
   148      "(?-i)*foo*": {
   149        "foo": true,
   150        "FOO": false
   151      }
   152    },
   153    "testMatchesNoWildcard_ignoreCase": {
   154      "foo": {
   155        "FOO": true,
   156        "foobar": false
   157      }
   158    },
   159    "testNeedleLongerThanHaystack": {
   160      "*foo": {
   161        "baz": false
   162      },
   163      "*foob": {
   164        "baz": false
   165      },
   166      "*fooba": {
   167        "baz": false
   168      },
   169      "*foobar": {
   170        "baz": false
   171      },
   172      "foo*": {
   173        "baz": false
   174      },
   175      "foob*": {
   176        "baz": false
   177      },
   178      "fooba*": {
   179        "baz": false
   180      },
   181      "foobar*": {
   182        "baz": false
   183      },
   184      "*foobar*": {
   185        "baz": false
   186      }
   187    },
   188    "testSingleCharacterWildcardNotSupported": {
   189      "fo?": {
   190        "foo": false,
   191        "fo?": true
   192      }
   193    }
   194  }