func FuzzDurationStrict(b []byte) int {
	var durationHolder struct {
		D metav1.Duration `json:"d"`
	}
	if err := sigyaml.UnmarshalStrict(b, &durationHolder); err != nil {
		return 0
	}
	result, err := sigyaml.Marshal(&durationHolder)
	if err != nil {
		panic(err)
	}
	// Result is in the format "d: <duration>\n", so strip off the trailing
	// newline and convert durationHolder.D to the expected format.
	resultStr := strings.TrimSpace(string(result[:]))
	inputStr := fmt.Sprintf("d: %s", durationHolder.D.Duration)
	if resultStr != inputStr {
		panic(fmt.Sprintf("result(%v) != input(%v)", resultStr, inputStr))
	}
	return 1
}
// FuzzDurationStrict is a fuzz target for strict-unmarshaling Duration defined
// in "k8s.io/apimachinery/pkg/apis/meta/v1". This target also checks that the
// unmarshaled result can be marshaled back to the input.
FuzzDurationStrict is a fuzz target for strict-unmarshaling Duration defined
in "k8s.io/apimachinery/pkg/apis/meta/v1". This target also checks that the
unmarshaled result can be marshaled back to the input.
// FuzzDurationStrict is a fuzz target for strict - unmarshaling Duration defined // in " k8s . io / apimachinery / pkg / apis / meta / v1 " . This target also checks that the // unmarshaled result can be marshaled back to the input .
func FuzzDurationStrict(b []byte) int {
	var durationHolder struct {
		D metav1.Duration `json:"d"`
	}
	if err := sigyaml.UnmarshalStrict(b, &durationHolder); err != nil {
		return 0
	}
	result, err := sigyaml.Marshal(&durationHolder)
	if err != nil {
		panic(err)
	}
	resultStr := strings.TrimSpace(string(result[:]))
	inputStr := fmt.Sprintf("d: %s", durationHolder.D.Duration)
	if resultStr != inputStr {
		panic(fmt.Sprintf("result(%v) != input(%v)", resultStr, inputStr))
	}
	return 1
}
func FuzzDurationStrict ( b [ ] byte ) int { var durationHolder struct { D metav1 . Duration `json:"d"` } if err := sigyaml . UnmarshalStrict ( b , & durationHolder ) ; err != nil { return 0 } result , err := sigyaml . Marshal ( & durationHolder ) if err != nil { panic ( err ) } resultStr := strings . TrimSpace ( string ( result [ : ] ) ) inputStr := fmt . Sprintf ( " " , durationHolder . D . Duration ) if resultStr != inputStr { panic ( fmt . Sprintf ( " " , resultStr , inputStr ) ) } return 1 }
FuzzDurationStrict is a fuzz target for strict-unmarshaling Duration defined
in "k8s.io/apimachinery/pkg/apis/meta/v1".
FuzzDurationStrict is a fuzz target for strict - unmarshaling Duration defined in " k8s . io / apimachinery / pkg / apis / meta / v1 " .
// Result is in the format "d: <duration>\n", so strip off the trailing // newline and convert durationHolder.D to the expected format.