Skip to content
go-libfossil Artifact [01cf720efe]
Login

Artifact [01cf720efe]

Artifact 01cf720efe83a18194b0afaeffffa66067db35fe720ba4211888c3022852256a:


package deck

import "testing"

func TestParseNilPanics(t *testing.T) {
	defer func() {
		if r := recover(); r == nil {
			t.Error("Parse(nil) did not panic")
		}
	}()
	Parse(nil)
}

func TestMarshalNilPanics(t *testing.T) {
	defer func() {
		if r := recover(); r == nil {
			t.Error("(*Deck)(nil).Marshal() did not panic")
		}
	}()
	var d *Deck
	d.Marshal()
}