zimmski / tavor

A generic fuzzing and delta-debugging framework
MIT License
245 stars 10 forks source link

Test interfaces at compile time not at test time #78

Open zimmski opened 9 years ago

zimmski commented 9 years ago

Remove all testing code of type

Implements(t, tok, &ConstantInt{})

With

...
// Token interface methods
var _ Token = (*ConstantInt)(nil)
...

Do this in _test.go not in .go.

Do this every time a type must implement a specific token.