MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / __init__

Method __init__

test/race-condition/mzcompose.py:456–458  ·  view source on GitHub ↗
(self, name: str, references: "Object | None", rng: random.Random)

Source from the content-addressed store, hash-verified

454
455class LoadGeneratorSource(Object):
456 def __init__(self, name: str, references: "Object | None", rng: random.Random):
457 super().__init__(name, references, rng)
458 self.tick_interval = rng.choice(["1ms", "10ms", "100ms", "1s", "10s"])
459
460 def create(self) -> str:
461 return f"> CREATE SOURCE {self.name} IN CLUSTER quickstart FROM LOAD GENERATOR COUNTER (TICK INTERVAL '{self.tick_interval}')"

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected