Sha256: 9dccb7cba17d6019d61a59bf7c906bac21d0d7780dfaa43ab1522f392e6cc131
Contents?: true
Size: 660 Bytes
Versions: 16
Compression:
Stored size: 660 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. class SegmentTermsRuleTests < Performance::TestCase def setup end def test_segment_terms_rule_matches? measure do NewRelic::Agent::RulesEngine::SegmentTermsRule.new({ 'prefix' => 'foo/bar/', 'terms' => [] }).matches?('foo/bar') end end def test_segment_terms_rule_apply measure do NewRelic::Agent::RulesEngine::SegmentTermsRule.new({ 'prefix' => 'foo/bar/', 'terms' => [] }).apply('foo/bar/baz/qux') end end end
Version data entries
16 entries across 16 versions & 2 rubygems