Package org.opensolaris.opengrok.analysis.uue

Examples of org.opensolaris.opengrok.analysis.uue.UuencodeXref


     * Truncated uuencoded files used to cause infinite loops. Verify that
     * they work now.
     */
    @Test
    public void truncatedUuencodedFile() throws IOException {
        UuencodeXref xref = new UuencodeXref(
                new StringReader("begin 644 test.txt\n"));

        // Generating the xref used to loop forever.
        StringWriter out = new StringWriter();
        xref.write(out);

        assertEquals("<a class=\"l\" name=\"1\" href=\"#1\">1</a>"
                + "<strong>begin</strong> <i>644</i> "
                + "<a href=\"/source/s?q=test.txt\">test.txt</a>"
                + "<span class='c'>\n"
View Full Code Here

TOP

Related Classes of org.opensolaris.opengrok.analysis.uue.UuencodeXref

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.