From 1d5657c7fbe762ac3b0d1a35a8c865fac031f195 Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Fri, 6 Jan 2023 17:21:43 +0800 Subject: [PATCH] make runnable Signed-off-by: Billy Zha --- cmd/oras/internal/option/parser_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/oras/internal/option/parser_test.go b/cmd/oras/internal/option/parser_test.go index 3eab59cbc..67bf17658 100644 --- a/cmd/oras/internal/option/parser_test.go +++ b/cmd/oras/internal/option/parser_test.go @@ -23,8 +23,9 @@ type Test struct { Cnt int } -func (t *Test) Parse() { +func (t *Test) Parse() error { t.Cnt += 1 + return nil } func TestParse(t *testing.T) {