use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class CXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/c/sampletags_c");
assertNotNull("though sampletags_c should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class CxxXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/c/sampletags_cc");
assertNotNull("though sampletags_cc should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class ClojureXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/clojure/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class CSharpXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/csharp/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class EiffelXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/eiffel/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
Aggregations