Did I find the right examples for you? yes no

All Samples(51)  |  Call(51)  |  Derive(0)  |  Import(0)

src/p/l/plexnet-HEAD/third_party/python/Cython/Compiler/Tests/TestParseTreeTransforms.py   plexnet(Download)
    def test_wrap_singlestat(self):
    	t = self.run_pipeline([NormalizeTree(None)], u"if x: y")
        self.assertLines(u"""
(root): StatListNode
  stats[0]: IfStatNode
    def test_wrap_multistat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            if z:
                x
                y
    def test_statinexpr(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            a, b = x, y
        """)
        self.assertLines(u"""
    def test_wrap_offagain(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            x
            y
            if z:
    def test_pass_eliminated(self):
        t = self.run_pipeline([NormalizeTree(None)], u"pass")
        self.assert_(len(t.stats) == 0)
 
class TestWithTransform(TransformTest):

src/c/y/Cython-0.20.1/Cython/Compiler/Tests/TestParseTreeTransforms.py   Cython(Download)
    def test_wrap_singlestat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"if x: y")
        self.assertLines(u"""
(root): StatListNode
  stats[0]: IfStatNode
    def test_wrap_multistat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            if z:
                x
                y
    def test_statinexpr(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            a, b = x, y
        """)
        self.assertLines(u"""
    def test_wrap_offagain(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            x
            y
            if z:
    def test_pass_eliminated(self):
        t = self.run_pipeline([NormalizeTree(None)], u"pass")
        self.assert_(len(t.stats) == 0)
 
class TestWithTransform(object): # (TransformTest): # Disabled!

src/c/y/cython-HEAD/Cython/Compiler/Tests/TestParseTreeTransforms.py   cython(Download)
    def test_wrap_singlestat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"if x: y")
        self.assertLines(u"""
(root): StatListNode
  stats[0]: IfStatNode
    def test_wrap_multistat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            if z:
                x
                y
    def test_statinexpr(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            a, b = x, y
        """)
        self.assertLines(u"""
    def test_wrap_offagain(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            x
            y
            if z:
    def test_pass_eliminated(self):
        t = self.run_pipeline([NormalizeTree(None)], u"pass")
        self.assert_(len(t.stats) == 0)
 
class TestWithTransform(object): # (TransformTest): # Disabled!

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/Tests/TestParseTreeTransforms.py   CythonCTypesBackend(Download)
    def test_wrap_singlestat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"if x: y")
        self.assertLines(u"""
(root): StatListNode
  stats[0]: IfStatNode
    def test_wrap_multistat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            if z:
                x
                y
    def test_statinexpr(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            a, b = x, y
        """)
        self.assertLines(u"""
    def test_wrap_offagain(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            x
            y
            if z:
    def test_pass_eliminated(self):
        t = self.run_pipeline([NormalizeTree(None)], u"pass")
        self.assert_(len(t.stats) == 0)
 
class TestWithTransform(object): # (TransformTest): # Disabled!

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/Tests/TestParseTreeTransforms.py   essig(Download)
    def test_wrap_singlestat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"if x: y")
        self.assertLines(u"""
(root): StatListNode
  stats[0]: IfStatNode
    def test_wrap_multistat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            if z:
                x
                y
    def test_statinexpr(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            a, b = x, y
        """)
        self.assertLines(u"""
    def test_wrap_offagain(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            x
            y
            if z:
    def test_pass_eliminated(self):
        t = self.run_pipeline([NormalizeTree(None)], u"pass")
        self.assert_(len(t.stats) == 0)
 
class TestWithTransform(object): # (TransformTest): # Disabled!

src/p/y/pylibs-HEAD/Cython/Compiler/Tests/TestParseTreeTransforms.py   pylibs(Download)
    def test_wrap_singlestat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"if x: y")
        self.assertLines(u"""
(root): StatListNode
  stats[0]: IfStatNode
    def test_wrap_multistat(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            if z:
                x
                y
    def test_statinexpr(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            a, b = x, y
        """)
        self.assertLines(u"""
    def test_wrap_offagain(self):
        t = self.run_pipeline([NormalizeTree(None)], u"""
            x
            y
            if z:
    def test_pass_eliminated(self):
        t = self.run_pipeline([NormalizeTree(None)], u"pass")
        self.assert_(len(t.stats) == 0)
 
class TestWithTransform(object): # (TransformTest): # Disabled!

src/c/y/CythonCTypesBackend-HEAD/Cython/CTypesBackend/Tests/TestExternDefTransform.py   CythonCTypesBackend(Download)
    def test_func_transform(self):
        t = self.run_pipeline([NormalizeTree(self), ExternDefTransform(["c"])],
u"""\
cdef extern from "stdio.h":
    int printf(char *, int *)\
    def test_void_func_transform(self):
        t = self.run_pipeline([NormalizeTree(self), ExternDefTransform(["c"])],
u"""\
cdef extern from "stdio.h":
    void printf(char *, char)\
    def test_struct_transform(self):
        # Probably platform dependent
        t = self.run_pipeline([NormalizeTree(self), ExternDefTransform(["c"])],
u"""\
cdef extern from "sys/time.h":

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/Tests/TestTreePath.py   essig(Download)
    def _build_tree(self):
        if self._tree is None:
            self._tree = self.run_pipeline([], u"""
            def decorator(fun):  # DefNode
                return fun       # ReturnStatNode, NameNode

src/c/y/Cython-0.20.1/Cython/Compiler/Tests/TestTreePath.py   Cython(Download)
    def _build_tree(self):
        if self._tree is None:
            self._tree = self.run_pipeline([], u"""
            def decorator(fun):  # DefNode
                return fun       # ReturnStatNode, NameNode

src/c/y/cython-HEAD/Cython/Compiler/Tests/TestTreePath.py   cython(Download)
    def _build_tree(self):
        if self._tree is None:
            self._tree = self.run_pipeline([], u"""
            def decorator(fun):  # DefNode
                return fun       # ReturnStatNode, NameNode

  1 | 2  Next