Answer architecture round 1: one invariant phrase in internal/invariant, held across every package, Source built by Dir and FS, coverage counted across packages, and file items 112 and 113
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"github.com/larvit/fejkdata/internal/drawstate"
|
||||
"github.com/larvit/fejkdata/internal/grammar"
|
||||
"github.com/larvit/fejkdata/internal/invariant"
|
||||
)
|
||||
|
||||
// Fake generates a value for a dot path. Each segment descends one level: folder
|
||||
@@ -83,7 +84,7 @@ func render(s *drawstate.State, n node, sc renderScope) string {
|
||||
}
|
||||
return renderRepeat(s, n, sc)
|
||||
default:
|
||||
panic(internalError("uncompiled node %T", n))
|
||||
panic(invariant.Broken("uncompiled node %T", n))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user