filter: create function for satisfying circleci tests

This commit is contained in:
Scott 2020-01-23 14:03:08 +10:30
parent ced8727c07
commit 458933babb
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ func NewMOGFilter(dst io.WriteCloser, area, threshold float64, history int, debu
return &NoOp{dst: dst}
}
// NewKNNFilter returns a pointer to a new NoOp struct for testing purposes only.
func NewKNNFilter(dst io.WriteCloser, area, threshold float64, history, kernelSize int, debug bool, hf int) *NoOp {
return &NoOp{dst: dst}
}
// NewDiffFilter returns a pointer to a new NoOp struct for testing purposes only.
func NewDiffFilter(dst io.WriteCloser, debug bool, threshold float64) *NoOp {
return &NoOp{dst: dst}
}