mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2025-04-02 11:02:17 -04:00
- improved documentation - some tidying up o regression - improved documentation o digest - Digest interface now requires Hash() rather than String() - warning: use of String() may now break things
14 lines
643 B
Go
14 lines
643 B
Go
// Package digest contain implementations of television protocol interfaces,
|
|
// namely PixelRenderer and AudioMixer, such that a crypographic hash is
|
|
// produced. The hash can then be used to compare output input from subsequent
|
|
// emulation executions - if a new hash differs from a previously recorded
|
|
// value then something has changed. We use this as the basis for regression
|
|
// tests and playback verification.
|
|
package digest
|
|
|
|
// Digest implementations should return a cryptographic hash in response to a
|
|
// String() request. Generation of the hash achieved via another interface.
|
|
type Digest interface {
|
|
Hash() string
|
|
ResetDigest()
|
|
}
|