File tree 1 file changed +21
-0
lines changed
spec/datadog/tracing/contrib/utils/quantization
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 3
3
require 'datadog/tracing/contrib/utils/quantization/http'
4
4
5
5
RSpec . describe Datadog ::Tracing ::Contrib ::Utils ::Quantization ::HTTP do
6
+ describe 'RFC3986_URL_BASE' do
7
+ let ( :regex ) { described_class ::RFC3986_URL_BASE }
8
+
9
+ it 'matches in linear time' do
10
+ if !Regexp . respond_to? ( :linear_time? )
11
+ skip 'Regexp.linear_time? method is only available on Ruby 3.3+'
12
+ else
13
+ pending
14
+ expect ( Regexp . linear_time? ( regex ) ) . to be true
15
+ end
16
+ end
17
+ end
18
+
6
19
describe '#url' do
7
20
subject ( :result ) { described_class . url ( url , options ) }
8
21
569
582
}
570
583
# rubocop:enable Layout/LineLength
571
584
585
+ it 'matches in linear time' do
586
+ if !Regexp . respond_to? ( :linear_time? )
587
+ skip 'Regexp.linear_time? method is only available on Ruby 3.3+'
588
+ else
589
+ expect ( Regexp . linear_time? ( regex ) ) . to be true
590
+ end
591
+ end
592
+
572
593
key_matches . each do |key |
573
594
context "given query string key #{ key . inspect } and its value" do
574
595
let ( :str ) { format ( '%<key>s=foo' , { key : key } ) }
You can’t perform that action at this time.
0 commit comments