Package com.python.pydev.analysis.messages

Examples of com.python.pydev.analysis.messages.IMessage


                "                notDefined)\n" +
                "");
        analyzer = new OccurrencesAnalyzer();
        msgs = analyzeDoc();

        IMessage message;

        printMessages(msgs, 4);

        message = assertContainsMsg("Unresolved import: pathNotDef1", msgs);
        assertEquals(1, message.getStartLine(doc));

        message = assertContainsMsg("Unresolved import: notDefined", msgs);
        assertEquals(2, message.getStartLine(doc));
        assertEquals(2, message.getEndLine(doc));

        assertEquals(17, message.getStartCol(doc));
        assertEquals(27, message.getEndCol(doc));

        assertContainsMsg("Unused import: notDefined", msgs);
        assertContainsMsg("Unused import: pathNotDef1", msgs);
    }
View Full Code Here


                "");
        analyzer = new OccurrencesAnalyzer();
        msgs = analyzeDoc();

        printMessages(msgs, 1);
        IMessage msg = assertContainsMsg("Unused import: os", msgs);
        assertEquals(1, msg.getStartLine(doc));
    }
View Full Code Here

                "");
        analyzer = new OccurrencesAnalyzer();
        msgs = analyzeDoc();

        printMessages(msgs, 2);
        IMessage message = assertContainsMsg("Import redefinition: os", msgs, 2);
        assertContainsMsg("Unused import: os", msgs, 1);
        assertEquals(8, message.getStartCol(doc));
        assertEquals(10, message.getEndCol(doc));
        assertEquals(2, message.getStartLine(doc));
    }
View Full Code Here

                "    pass    \n" +
                "\n");
        analyzer = new OccurrencesAnalyzer();
        msgs = analyzeDoc();
        printMessages(msgs, 1);
        IMessage msg = msgs[0];
        assertEquals("Undefined variable: notdefined", msg.getMessage());
        assertEquals(2, msg.getStartCol(doc));
        assertEquals(1, msg.getStartLine(doc));
    }
View Full Code Here

                "    pass    \n" +
                "\n");
        analyzer = new OccurrencesAnalyzer();
        msgs = analyzeDoc();
        printMessages(msgs, 1);
        IMessage msg = msgs[0];
        assertEquals("Undefined variable: notdefined", msg.getMessage());
        assertEquals(2, msg.getStartCol(doc));
        assertEquals(1, msg.getStartLine(doc));
    }
View Full Code Here

                "");
        analyzer = new OccurrencesAnalyzer();
        msgs = analyzeDoc();

        printMessages(msgs, 1);
        IMessage msg = assertContainsMsg("Undefined variable: a", msgs);
        assertEquals(8, msg.getStartCol(doc));
    }
View Full Code Here

TOP

Related Classes of com.python.pydev.analysis.messages.IMessage

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.