Beispiel #1
0
 def _cls(self, raw):
     pkg = apilint.Package(999, "package pkg {", None)
     return apilint.Class(pkg, 1, raw, '', sig_format=2)
Beispiel #2
0
 def _package(self, raw):
     return apilint.Package(123, raw, "blame")
Beispiel #3
0
def cls(pkg, name):
    return apilint.Class(apilint.Package(999, "package %s {" % pkg, None), 999,
                         "public final class %s {" % name, None)
Beispiel #4
0
 def test_parse_package(self):
     pkg = apilint.Package(999, "package wifi.p2p {", None)
     self.assertEquals("wifi.p2p", pkg.name)