MCPcopy Create free account
hub / github.com/PCGen/pcgen / data

Method data

code/src/test/pcgen/persistence/lst/DataLoadTest.java:86–103  ·  view source on GitHub ↗

Build the list of sources to be checked. Also initialises the plugins and loads the game mode and campaign files.

()

Source from the content-addressed store, hash-verified

84 * loads the game mode and campaign files.
85 */
86 public static Stream<Object[]> data()
87 {
88 // Set things up
89 loadGameModes();
90 SettingsHandler.setOutputDeprecationMessages(false);
91 SettingsHandler.setInputUnconstructedMessages(false);
92 PCGenSettings.OPTIONS_CONTEXT.setBoolean(
93 PCGenSettings.OPTION_ALLOW_OVERRIDE_DUPLICATES, true);
94
95 List<SourceSelectionFacade> basicSources = getBasicSources();
96 assertFalse(basicSources.isEmpty(), "No sources found");
97 Collection<Object[]> params = new ArrayList<>();
98 basicSources.forEach(ssf -> {
99 String testName = ssf.toString().replaceAll("[(\\)]", "_");
100 params.add(new Object[]{ssf, testName});
101 });
102 return params.stream();
103 }
104
105 /**
106 * Test the load of the current source.

Callers

nothing calls this directly

Calls 11

loadGameModesMethod · 0.95
getBasicSourcesMethod · 0.95
setBooleanMethod · 0.80
forEachMethod · 0.80
streamMethod · 0.80
isEmptyMethod · 0.65
toStringMethod · 0.65
addMethod · 0.65
replaceAllMethod · 0.45

Tested by

no test coverage detected