# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. use Test::More; BEGIN { use_ok( 'Yahoo::Vespa::ArgParser' ); } require_ok( 'Yahoo::Vespa::ArgParser' ); BEGIN { *ArgParser:: = *Yahoo::Vespa::ArgParser:: } use TestUtils::OutputCapturer; TestUtils::OutputCapturer::useColors(1); &testSyntaxPage(); TestUtils::OutputCapturer::useColors(0); &testStringOption(); &testIntegerOption(); &testHostOption(); &testPortOption(); &testFlagOption(); &testCountOption(); &testComplexParsing(); &testArguments(); done_testing(); exit(0); sub testSyntaxPage { # Empty ArgParser::writeSyntaxPage(); my $expected = <