mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 22:58:44 +05:00
RSRFilter test for non empty value
This commit is contained in:
@@ -350,6 +350,16 @@ func TestRSRFilterPass(t *testing.T) {
|
||||
if !fltr.Pass("") {
|
||||
t.Error("Not passing!")
|
||||
}
|
||||
fltr, err = NewRSRFilter("!^$") // Non-empty value
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
if !fltr.Pass("CGRateS") {
|
||||
t.Error("Not passing!")
|
||||
}
|
||||
if fltr.Pass("") {
|
||||
t.Error("Passing!")
|
||||
}
|
||||
}
|
||||
|
||||
func TestRSRFiltersPass(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user