-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
When creating flow you can pass softbin_size per test to define the number of softbins reserved for that test. Per default, softbin_size is defined as 1, if forever reason you want to increase this size, it results in increment by 1 numbers in testids still. The function called is in allocator.rb -> next_in_range -> range_item and leads during debug sessions to the else branch.
# Now calculate the new pointer.
@pointer = range.index(previous_assigned_value) + 1
# Check if the last_softbin given out is the same as the range[@pointer],
# if so increment pointer by softbin size, default size is 1, config.softbins.size is configurable.
# from example above, pointer was calculated as 1,range[1] is 10101 and is same as last_softbin, so pointer is incremented
# and new value is assigned to the softbin.
if previous_assigned_value == range[@pointer]
@pointer += options[:size]
assigned_value = range[@pointer]
else
# Because of the pointer calculations above, I don't think it will ever reach here, has not in my test cases so far!
assigned_value = range[@pointer]
end
I think the increment of the @pointer = range.index(previous_assigned_value) by 1 is not reflecting the softbin_size of the previous assigned softbin number correctly. Is there an easy fix or workaround for that available? Does anybody know within this community, please?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels