Sha256: 9e655c9af18c1e6bd9baa5bb75b01dcebbaa8bc59ff36cad3bf923d77c0624a0
Contents?: true
Size: 672 Bytes
Versions: 26
Compression:
Stored size: 672 Bytes
Contents
class TestTrack::Fake::Visitor attr_reader :id Assignment = Struct.new(:split_name, :variant, :unsynced, :context) def self.instance @instance ||= new(TestTrack::FakeServer.seed) end def self.reset! @instance = nil end def initialize(id) @id = id end def assignments @assignments ||= _assignments end def split_registry TestTrack::Fake::SplitRegistry.instance.to_h end private def _assignments split_registry.keys.map do |split_name| variant = TestTrack::VariantCalculator.new(visitor: self, split_name: split_name).variant Assignment.new(split_name, variant, false, "the_context") end end end
Version data entries
26 entries across 26 versions & 1 rubygems