Skip to main content

crashtest.hxsmith.features.branching

if/else, early return, switch on scalars, and switch/if as values.

class Branching(Feature)​

name​

name = 'branching'

summary​

summary = 'if/else chains, early return, scalar switch (statement and expression)'

covers​

covers = ('EIf', 'ESwitch', 'EReturn', 'EBlock')

order​

order = 30

stmts​

def stmts(g: Gen)

exprs​

def exprs(g: Gen, ty: Ty)