From 99bcedf5411e47380739c8999a6ae3fdd0739fa3 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Fri, 16 Jan 2015 11:24:28 -0800 Subject: Fix unit tests to include Type() method in custom types This was broken by commit 463bdc838f2b35 ("Adding Type() method to the values.") which added the method to the interface but did not update the custom types in unit tests. Signed-off-by: Filipe Brandenburger --- example_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'example_test.go') diff --git a/example_test.go b/example_test.go index 03ebeaa..6aaed3c 100644 --- a/example_test.go +++ b/example_test.go @@ -29,6 +29,10 @@ func (i *interval) String() string { return fmt.Sprint(*i) } +func (i *interval) Type() string { + return "interval" +} + // Set is the method to set the flag value, part of the flag.Value interface. // Set's argument is a string to be parsed to set the flag. // It's a comma-separated list, so we split it. -- cgit v1.2.3