Skip to content

Commit

Permalink
Merge pull request #66 from ipld/schema-testcases-reno
Browse files Browse the repository at this point in the history
New testcase system for exercising typed nodes; Revamp struct tests to use it.
  • Loading branch information
warpfork authored Sep 5, 2020
2 parents 0d08642 + e0e89d7 commit cacb1e9
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 299 deletions.
3 changes: 3 additions & 0 deletions node/gendemo/tMsg3.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions schema/gen/go/genStructReprMap.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ func (g structReprMapReprBuilderGenerator) emitMapAssemblerMethods(w io.Writer)
}
ma.s += fieldBit__{{ $type | TypeSymbol }}_{{ $field | FieldSymbolUpper }}
ma.state = maState_midValue
ma.f = {{ $i }}
{{- if $field.IsMaybe }}
ma.ca_{{ $field | FieldSymbolLower }}.w = {{if not (MaybeUsesPtr $field.Type) }}&{{end}}ma.w.{{ $field | FieldSymbolLower }}.v
ma.ca_{{ $field | FieldSymbolLower }}.m = &ma.w.{{ $field | FieldSymbolLower }}.m
Expand Down
Loading

0 comments on commit cacb1e9

Please sign in to comment.