From d4269ad79b0f70cb5b2bd80c514e98c1a97f11d1 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 22 Sep 2021 22:33:59 +0100 Subject: [PATCH] fix test for Layer3::Cisco.pm --- xt/lib/Test/SNMP/Info/Layer3/Cisco.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xt/lib/Test/SNMP/Info/Layer3/Cisco.pm b/xt/lib/Test/SNMP/Info/Layer3/Cisco.pm index 9b3ee2d9..7bd8c66e 100644 --- a/xt/lib/Test/SNMP/Info/Layer3/Cisco.pm +++ b/xt/lib/Test/SNMP/Info/Layer3/Cisco.pm @@ -86,6 +86,16 @@ sub setup : Tests(setup) { $test->{info}->cache($cache_data); } +# This class is a collection of roles and not meant to instantiated for a +# specific device. Don't test device class and no need to setup data +sub device_type : Tests(1) { + my $test = shift; + my $class = $test->class; + + can_ok($test->{info}, 'device_type'); + +} + # Only going to test the non-VTP path in this class and assume CiscoVTP will # test the SUPER::i_vlan method, since this class will handle traditional # routers that usually don't have VTP.