Skip to content

Commit

Permalink
#62: start adding panic routines for testBinary
Browse files Browse the repository at this point in the history
  • Loading branch information
dekarrin committed Dec 2, 2023
1 parent 2778b15 commit ec05e44
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rezi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,20 @@ func (ttv *testText) UnmarshalText(data []byte) error {
// MarshalBinary instead of normal encoding. encOverride is therefore encoded,
// in a sense, but not directly. If both encOverride and encErr are set, encErr
// takes precedence.
//
// encPanic and decPanic are the same thing but for panics. They take precedence
// over all others.
type testBinary struct {
number int32
data string
// encoded fields:
number int32
data string

// non-encoded fields:
decErr error
encErr error
encOverride *[]byte
decPanic interface{}
encPanic interface{}
}

func (tbv testBinary) MarshalBinary() ([]byte, error) {
Expand Down

0 comments on commit ec05e44

Please sign in to comment.