Skip to content

Commit

Permalink
pytest model
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandolby committed Feb 16, 2021
1 parent 3461b98 commit 3c3c7c0
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions com.ibm.wala.cast.python/data/pytest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" ?>
<!DOCTYPE summary-spec>
<!-- Pandas model -->
<summary-spec>
<classloader name="PythonLoader">
<class name="pytest" allocatable="true">
<method name="import"
static="true"
descriptor="()Lpytest;">
<new def="x" class="Lpytest"/>

<new def="mark" class="Lobject"/>
<putfield class="LRoot"
field="mark"
fieldType="LRoot"
ref="x"
value="mark"/>

<new def="parametrize" class="Lpytest/class/parametrize"/>
<putfield class="LRoot"
field="parametrize"
fieldType="LRoot"
ref="mark"
value="parametrize"/>

<return value="x"/>
</method>
</class>
le
<package name="pytest/class">

<class name="Parametrize" allocatable="true">
<method name="do" descriptor="()LRoot;" numArgs="2" paramNames="self test">

<putfield class="LRoot"
field="params"
fieldType="LRoot"
ref="test"
value="self"/>

<return value="test"/>
</method>
</class>

<class name="parametrize" allocatable="true">
<method name="do" descriptor="()LRoot;" numArgs="4"
paramNames="self params values extra">
<new def="closure" class="Lpytest/class/Parametrize"/>

<putfield class="LRoot"
field="test"
fieldType="LRoot"
ref="closure"
value="self"/>

<putfield class="LRoot"
field="params"
fieldType="LRoot"
ref="closure"
value="params"/>

<putfield class="LRoot"
field="values"
fieldType="LRoot"
ref="closure"
value="values"/>

<return value="closure"/>
</method>
</class>
</package>

</classloader>
</summary-spec>

0 comments on commit 3c3c7c0

Please sign in to comment.