|
func Test_occupancyCentralTendency(t *testing.T) { |
The point of the two occupancy type tests is to get through the logic of getting the central tendency and the sample occupancy type logic without throwing a panic.
we could use recover to trap if a panic occurs. I believe this would have to be inside the loop for the occupancy types.
defer func() {
if r := recover(); r != nil {
t.Errorf("PAINC!")
}
}()
go-consequences/structures/occupancytypes_test.go
Line 65 in 3632c0f
The point of the two occupancy type tests is to get through the logic of getting the central tendency and the sample occupancy type logic without throwing a panic.
we could use recover to trap if a panic occurs. I believe this would have to be inside the loop for the occupancy types.