Package nl.basjes.parse.useragent.debug
Class UserAgentStringMatchMakerTester
java.lang.Object
nl.basjes.parse.useragent.AbstractUserAgentAnalyzerDirect
nl.basjes.parse.useragent.AbstractUserAgentAnalyzer
nl.basjes.parse.useragent.debug.UserAgentStringMatchMakerTester
- All Implemented Interfaces:
Serializable
,Analyzer
,AnalyzerPreHeater
,AnalyzerConfigHolder
- Direct Known Subclasses:
UserAgentAnalyzerTester
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
UserAgentStringMatchMakerTester.AbstractUserAgentAnalyzerTesterBuilder<UAA extends UserAgentStringMatchMakerTester,
B extends AbstractUserAgentAnalyzer.AbstractUserAgentAnalyzerBuilder<UAA, B>> static class
Nested classes/interfaces inherited from class nl.basjes.parse.useragent.AbstractUserAgentAnalyzer
AbstractUserAgentAnalyzer.AbstractUserAgentAnalyzerBuilder<UAA extends AbstractUserAgentAnalyzer,
B extends AbstractUserAgentAnalyzer.AbstractUserAgentAnalyzerBuilder<UAA, B>>, AbstractUserAgentAnalyzer.CacheInstantiator, AbstractUserAgentAnalyzer.ClientHintsCacheInstantiator<T extends Serializable> Nested classes/interfaces inherited from class nl.basjes.parse.useragent.AbstractUserAgentAnalyzerDirect
AbstractUserAgentAnalyzerDirect.AbstractUserAgentAnalyzerDirectBuilder<UAA extends AbstractUserAgentAnalyzerDirect,
B extends AbstractUserAgentAnalyzerDirect.AbstractUserAgentAnalyzerDirectBuilder<UAA, B>>, AbstractUserAgentAnalyzerDirect.HeaderSpecification -
Field Summary
Fields inherited from class nl.basjes.parse.useragent.AbstractUserAgentAnalyzer
cacheSize, DEFAULT_PARSE_CACHE_SIZE, wasBuilt
Fields inherited from class nl.basjes.parse.useragent.AbstractUserAgentAnalyzerDirect
clientHintsAnalyzer
Fields inherited from interface nl.basjes.parse.useragent.AnalyzerPreHeater
MAX_PRE_HEAT_ITERATIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
configureKryo
(Object kryoInstance) This is used to configure the provided Kryo instance if Kryo serialization is desired.boolean
runTests()
Run all the test_cases available.boolean
runTests
(boolean showAll, boolean failOnUnexpected) boolean
runTests
(boolean showAll, boolean failOnUnexpected, Collection<String> onlyValidateFieldNames, boolean measureSpeed, boolean showPassedTests) static boolean
runTests
(AbstractUserAgentAnalyzerDirect analyzer, boolean showAll, boolean failOnUnexpected, Collection<String> onlyValidateFieldNames, boolean measureSpeed, boolean showPassedTests, StringBuilder errorMessageReceiver) toString()
Methods inherited from class nl.basjes.parse.useragent.AbstractUserAgentAnalyzer
clearCache, destroy, disableCaching, getCacheSize, getClientHintsCacheSize, parse, setCacheInstantiator, setCacheSize, setClientHintsCacheInstantiator, setClientHintsCacheSize
Methods inherited from class nl.basjes.parse.useragent.AbstractUserAgentAnalyzerDirect
configure, getAllMatchers, getAllPossibleFieldNames, getAllPossibleFieldNamesSorted, getAllSupportedHeaders, getConfig, getMatches, getMatchMaker, getPreheatTestCases, getTouchedMatchers, getUsedMatches, getWantedFieldNames, initializeMatchers, isSupportedClientHintHeader, isWantedField, loadResources, loadResources, parse, parse, reset, setVerbose, supportedClientHintHeaders
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.basjes.parse.useragent.config.AnalyzerConfigHolder
dropTests, getLookups, getLookupSets, getTestCases, getUserAgentMaxLength
Methods inherited from interface nl.basjes.parse.useragent.AnalyzerPreHeater
internalGetTestCasesForPreheat, preHeat, preHeat, preHeat, preHeat
-
Constructor Details
-
UserAgentStringMatchMakerTester
public UserAgentStringMatchMakerTester()
-
-
Method Details
-
configureKryo
This is used to configure the provided Kryo instance if Kryo serialization is desired. The expected type here is Object because otherwise the Kryo library becomes a mandatory dependency on any project that uses Yauaa.- Parameters:
kryoInstance
- The instance of com.esotericsoftware.kryo.Kryo that needs to be configured.
-
runTests
public boolean runTests()Run all the test_cases available.- Returns:
- true if all tests were successful.
-
runTests
public boolean runTests(boolean showAll, boolean failOnUnexpected) -
runTests
public boolean runTests(boolean showAll, boolean failOnUnexpected, Collection<String> onlyValidateFieldNames, boolean measureSpeed, boolean showPassedTests) -
runTests
public static boolean runTests(AbstractUserAgentAnalyzerDirect analyzer, boolean showAll, boolean failOnUnexpected, Collection<String> onlyValidateFieldNames, boolean measureSpeed, boolean showPassedTests, StringBuilder errorMessageReceiver) -
analyzeMatcherImpactAllTests
public void analyzeMatcherImpactAllTests() -
toString
- Overrides:
toString
in classAbstractUserAgentAnalyzer
-