push
github
0 of 18 new or added lines in 3 files covered. (0.0%)
1924 existing lines in 56 files now uncovered.0 of 2082 relevant lines covered (0.0%)
0.0 hits per line
UNCOV
1
|
require 'murmurhash3'
|
× |
2 |
|
|
UNCOV
3
|
module Unleash |
× |
UNCOV
4
|
module Strategy |
× |
UNCOV
5
|
module Util |
× |
UNCOV
6
|
module_function |
× |
7 |
|
|
UNCOV
8
|
NORMALIZER = 100 |
× |
9 |
|
|
10 |
# convert the two strings () into a number between 1 and base (100 by default)
|
|
UNCOV
11
|
def get_normalized_number(identifier, group_id, base = NORMALIZER) |
× |
UNCOV
12
|
MurmurHash3::V32.str_hash("#{group_id}:#{identifier}") % base + 1 |
× |
13 |
end
|
|
14 |
end
|
|
15 |
end
|
|
16 |
end
|