MCPcopy Create free account
hub / github.com/LFYSec/MScan / addConfig

Method addConfig

src/main/java/pascal/taie/config/ConfigManager.java:51–57  ·  view source on GitHub ↗
(AnalysisConfig config)

Source from the content-addressed store, hash-verified

49 }
50
51 private void addConfig(AnalysisConfig config) {
52 if (configs.containsKey(config.getId())) {
53 throw new ConfigException("There are multiple analyses for the same id " +
54 config.getId() + " in " + Configs.getAnalysisConfigURL());
55 }
56 configs.put(config.getId(), config);
57 }
58
59 /**
60 * Given an analysis id, returns the corresponding AnalysisConfig.

Callers

nothing calls this directly

Calls 4

getAnalysisConfigURLMethod · 0.95
containsKeyMethod · 0.65
putMethod · 0.65
getIdMethod · 0.45

Tested by

no test coverage detected