Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FilterRuleList (0.08 sec)

  1. internal/event/config_test.go

    		}
    	}
    }
    
    func TestFilterRuleListPattern(t *testing.T) {
    	testCases := []struct {
    		filterRuleList FilterRuleList
    		expectedResult string
    	}{
    		{FilterRuleList{}, ""},
    		{FilterRuleList{[]FilterRule{{"prefix", "Hello/世界"}}}, "Hello/世界*"},
    		{FilterRuleList{[]FilterRule{{"suffix", "foo/bar"}}}, "*foo/bar"},
    		{FilterRuleList{[]FilterRule{{"prefix", "Hello/世界"}, {"suffix", "foo/bar"}}}, "Hello/世界*foo/bar"},
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 29K bytes
    - Viewed (0)
Back to top