Documentation ¶
Overview ¶
Generates a full netsim test, given a log-splicer processed ssb-fixtures folder and a replication expectations file expectations.json.
Index ¶
- func GenerateTest(args Args, expectations map[string][]string, outputWriter io.Writer)
- func GetFollowMap(followGraphPath string) (map[string][]string, map[string]map[string]bool, error)
- func GetIdentities(fixturesRoot string) (map[string]string, error)
- func PickName(splicedFixturesMap map[string]interface{}) string
- type Args
- type Generator
- type Graph
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTest ¶
func GetFollowMap ¶
Returns a map of follows (id -> slice of ids that are followed), a map of blocks (g.isBlocking[id][otherId] = true if id blocks otherId)
func GetIdentities ¶
Produces a map of hex identifiers to the folder storing the puppet's id & log.offset
Types ¶
type Generator ¶
type Graph ¶
func (Graph) RecurseFollows ¶
TODO: change pair to { src: string, dst: []string }? the above ^ change can also take care of batching the dst's into correct sized buckets. if len(dst) > SOME_MAX, then we push what we already have to the pairs slice and start populating a new slice of destinations
Click to show internal directories.
Click to hide internal directories.