All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lu.uni.serval.ikora.smells.utils.StatementCounter Maven / Gradle / Ivy

There is a newer version: 0.1.19
Show newest version
package lu.uni.serval.ikora.smells.utils;

import lu.uni.serval.ikora.core.analytics.KeywordStatistics;
import lu.uni.serval.ikora.core.model.TestCase;

import java.util.HashMap;
import java.util.Map;

public class StatementCounter {
    private static final Map cache = new HashMap<>();

    private StatementCounter() {}

    public static int getCount(TestCase testCase){
        return cache.computeIfAbsent(testCase, KeywordStatistics::getStatementCount);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy