Fixing comments FuzzDurationStrict and FuzzMicroTimeStrict

This commit is contained in:
Brendan Chang 2019-10-25 11:44:49 -04:00
parent 7aa9434811
commit 9ef94b2d47

View File

@ -27,8 +27,8 @@ import (
sigyaml "sigs.k8s.io/yaml" sigyaml "sigs.k8s.io/yaml"
) )
// FuzzDuration is a fuzz target for strict-unmarshaling Duration defined in // FuzzDurationStrict is a fuzz target for strict-unmarshaling Duration defined
// "k8s.io/apimachinery/pkg/apis/meta/v1". This target also checks that the // in "k8s.io/apimachinery/pkg/apis/meta/v1". This target also checks that the
// unmarshaled result can be marshaled back to the input. // unmarshaled result can be marshaled back to the input.
func FuzzDurationStrict(b []byte) int { func FuzzDurationStrict(b []byte) int {
var durationHolder struct { var durationHolder struct {
@ -47,9 +47,9 @@ func FuzzDurationStrict(b []byte) int {
return 1 return 1
} }
// FuzzMicroTime is a fuzz target for strict-unmarshaling MicroTime defined in // FuzzMicroTimeStrict is a fuzz target for strict-unmarshaling MicroTime
// "k8s.io/apimachinery/pkg/apis/meta/v1". This target also checks that the // defined in "k8s.io/apimachinery/pkg/apis/meta/v1". This target also checks
// unmarshaled result can be marshaled back to the input. // that the unmarshaled result can be marshaled back to the input.
func FuzzMicroTimeStrict(b []byte) int { func FuzzMicroTimeStrict(b []byte) int {
var microTimeHolder struct { var microTimeHolder struct {
T metav1.MicroTime `json:"t"` T metav1.MicroTime `json:"t"`