mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
* update vendor to add addon-framework Signed-off-by: zhujian <jiazhu@redhat.com> * Move addon manager from addon-framework to ocm repo Signed-off-by: zhujian <jiazhu@redhat.com> * add integration tests for addon manager Signed-off-by: zhujian <jiazhu@redhat.com> * push addon manager image post commit Signed-off-by: zhujian <jiazhu@redhat.com> * use library-go to refactor addon controllers Signed-off-by: zhujian <jiazhu@redhat.com> --------- Signed-off-by: zhujian <jiazhu@redhat.com>
23 lines
515 B
Go
23 lines
515 B
Go
// +build gofuzz
|
|
|
|
package semver
|
|
|
|
func Fuzz(data []byte) int {
|
|
d := string(data)
|
|
|
|
// Test NewVersion
|
|
_, _ = NewVersion(d)
|
|
|
|
// Test StrictNewVersion
|
|
_, _ = StrictNewVersion(d)
|
|
|
|
// Test NewConstraint
|
|
_, _ = NewConstraint(d)
|
|
|
|
// The return value should be 0 normally, 1 if the priority in future tests
|
|
// should be increased, and -1 if future tests should skip passing in that
|
|
// data. We do not have a reason to change priority so 0 is always returned.
|
|
// There are example tests that do this.
|
|
return 0
|
|
}
|