diff options
Diffstat (limited to 'doc/sample_html/cogapp_makefiles_py.html')
-rw-r--r-- | doc/sample_html/cogapp_makefiles_py.html | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/doc/sample_html/cogapp_makefiles_py.html b/doc/sample_html/cogapp_makefiles_py.html index a2261347..a2514c8d 100644 --- a/doc/sample_html/cogapp_makefiles_py.html +++ b/doc/sample_html/cogapp_makefiles_py.html @@ -8,7 +8,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" /> - <title>Coverage for cogapp/makefiles.py: 64.29%</title> + <title>Coverage for cogapp/makefiles.py: 19.05%</title> <link rel="stylesheet" href="style.css" type="text/css"> <script type="text/javascript" src="jquery.min.js"></script> @@ -24,19 +24,19 @@ <div id="header"> <div class="content"> <h1>Coverage for <b>cogapp/makefiles.py</b> : - <span class="pc_cov">64.29%</span> + <span class="pc_cov">19.05%</span> </h1> <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" /> <h2 class="stats"> 28 statements - <span class="run hide_run shortkey_r button_toggle_run">21 run</span> - <span class="mis shortkey_m button_toggle_mis">7 missing</span> + <span class="run hide_run shortkey_r button_toggle_run">8 run</span> + <span class="mis shortkey_m button_toggle_mis">20 missing</span> <span class="exc shortkey_x button_toggle_exc">3 excluded</span> - <span class="par run hide_run shortkey_p button_toggle_par">2 partial</span> + <span class="par run hide_run shortkey_p button_toggle_par">0 partial</span> </h2> </div> @@ -86,20 +86,20 @@ <p id="n15" class="stm run hide_run"><a href="#n15">15</a></p> <p id="n16" class="pln"><a href="#n16">16</a></p> <p id="n17" class="pln"><a href="#n17">17</a></p> -<p id="n18" class="stm run hide_run"><a href="#n18">18</a></p> -<p id="n19" class="stm run hide_run"><a href="#n19">19</a></p> -<p id="n20" class="stm run hide_run"><a href="#n20">20</a></p> -<p id="n21" class="stm run hide_run"><a href="#n21">21</a></p> -<p id="n22" class="stm par run hide_run"><a href="#n22">22</a></p> -<p id="n23" class="stm run hide_run"><a href="#n23">23</a></p> -<p id="n24" class="stm run hide_run"><a href="#n24">24</a></p> -<p id="n25" class="stm run hide_run"><a href="#n25">25</a></p> -<p id="n26" class="stm run hide_run"><a href="#n26">26</a></p> -<p id="n27" class="stm run hide_run"><a href="#n27">27</a></p> +<p id="n18" class="stm mis"><a href="#n18">18</a></p> +<p id="n19" class="stm mis"><a href="#n19">19</a></p> +<p id="n20" class="stm mis"><a href="#n20">20</a></p> +<p id="n21" class="stm mis"><a href="#n21">21</a></p> +<p id="n22" class="stm mis"><a href="#n22">22</a></p> +<p id="n23" class="stm mis"><a href="#n23">23</a></p> +<p id="n24" class="stm mis"><a href="#n24">24</a></p> +<p id="n25" class="stm mis"><a href="#n25">25</a></p> +<p id="n26" class="stm mis"><a href="#n26">26</a></p> +<p id="n27" class="stm mis"><a href="#n27">27</a></p> <p id="n28" class="pln"><a href="#n28">28</a></p> -<p id="n29" class="stm par run hide_run"><a href="#n29">29</a></p> -<p id="n30" class="stm run hide_run"><a href="#n30">30</a></p> -<p id="n31" class="stm run hide_run"><a href="#n31">31</a></p> +<p id="n29" class="stm mis"><a href="#n29">29</a></p> +<p id="n30" class="stm mis"><a href="#n30">30</a></p> +<p id="n31" class="stm mis"><a href="#n31">31</a></p> <p id="n32" class="pln"><a href="#n32">32</a></p> <p id="n33" class="stm run hide_run"><a href="#n33">33</a></p> <p id="n34" class="pln"><a href="#n34">34</a></p> @@ -152,20 +152,20 @@ <p id="t15" class="stm run hide_run"><span class="key">def</span> <span class="nam">makeFiles</span><span class="op">(</span><span class="nam">d</span><span class="op">,</span> <span class="nam">basedir</span><span class="op">=</span><span class="str">'.'</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> <p id="t16" class="pln"> <span class="str">""" Create files from the dictionary `d`, in the directory named by `basedir`.</span><span class="strut"> </span></p> <p id="t17" class="pln"><span class="str"> """</span><span class="strut"> </span></p> -<p id="t18" class="stm run hide_run"> <span class="key">for</span> <span class="nam">name</span><span class="op">,</span> <span class="nam">contents</span> <span class="key">in</span> <span class="nam">d</span><span class="op">.</span><span class="nam">items</span><span class="op">(</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> -<p id="t19" class="stm run hide_run"> <span class="nam">child</span> <span class="op">=</span> <span class="nam">os</span><span class="op">.</span><span class="nam">path</span><span class="op">.</span><span class="nam">join</span><span class="op">(</span><span class="nam">basedir</span><span class="op">,</span> <span class="nam">name</span><span class="op">)</span><span class="strut"> </span></p> -<p id="t20" class="stm run hide_run"> <span class="key">if</span> <span class="nam">isinstance</span><span class="op">(</span><span class="nam">contents</span><span class="op">,</span> <span class="nam">string_types</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> -<p id="t21" class="stm run hide_run"> <span class="nam">mode</span> <span class="op">=</span> <span class="str">'w'</span><span class="strut"> </span></p> -<p id="t22" class="stm par run hide_run"><span class="annotate" title="Line 22 was executed, but never jumped to line 24">22 ↛ 24 [?]</span> <span class="key">if</span> <span class="nam">isinstance</span><span class="op">(</span><span class="nam">contents</span><span class="op">,</span> <span class="nam">bytes_types</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> -<p id="t23" class="stm run hide_run"> <span class="nam">mode</span> <span class="op">+=</span> <span class="str">"b"</span><span class="strut"> </span></p> -<p id="t24" class="stm run hide_run"> <span class="nam">f</span> <span class="op">=</span> <span class="nam">open</span><span class="op">(</span><span class="nam">child</span><span class="op">,</span> <span class="nam">mode</span><span class="op">)</span><span class="strut"> </span></p> -<p id="t25" class="stm run hide_run"> <span class="nam">contents</span> <span class="op">=</span> <span class="nam">reindentBlock</span><span class="op">(</span><span class="nam">contents</span><span class="op">)</span><span class="strut"> </span></p> -<p id="t26" class="stm run hide_run"> <span class="nam">f</span><span class="op">.</span><span class="nam">write</span><span class="op">(</span><span class="nam">contents</span><span class="op">)</span><span class="strut"> </span></p> -<p id="t27" class="stm run hide_run"> <span class="nam">f</span><span class="op">.</span><span class="nam">close</span><span class="op">(</span><span class="op">)</span><span class="strut"> </span></p> +<p id="t18" class="stm mis"> <span class="key">for</span> <span class="nam">name</span><span class="op">,</span> <span class="nam">contents</span> <span class="key">in</span> <span class="nam">d</span><span class="op">.</span><span class="nam">items</span><span class="op">(</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> +<p id="t19" class="stm mis"> <span class="nam">child</span> <span class="op">=</span> <span class="nam">os</span><span class="op">.</span><span class="nam">path</span><span class="op">.</span><span class="nam">join</span><span class="op">(</span><span class="nam">basedir</span><span class="op">,</span> <span class="nam">name</span><span class="op">)</span><span class="strut"> </span></p> +<p id="t20" class="stm mis"> <span class="key">if</span> <span class="nam">isinstance</span><span class="op">(</span><span class="nam">contents</span><span class="op">,</span> <span class="nam">string_types</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> +<p id="t21" class="stm mis"> <span class="nam">mode</span> <span class="op">=</span> <span class="str">'w'</span><span class="strut"> </span></p> +<p id="t22" class="stm mis"> <span class="key">if</span> <span class="nam">isinstance</span><span class="op">(</span><span class="nam">contents</span><span class="op">,</span> <span class="nam">bytes_types</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> +<p id="t23" class="stm mis"> <span class="nam">mode</span> <span class="op">+=</span> <span class="str">"b"</span><span class="strut"> </span></p> +<p id="t24" class="stm mis"> <span class="nam">f</span> <span class="op">=</span> <span class="nam">open</span><span class="op">(</span><span class="nam">child</span><span class="op">,</span> <span class="nam">mode</span><span class="op">)</span><span class="strut"> </span></p> +<p id="t25" class="stm mis"> <span class="nam">contents</span> <span class="op">=</span> <span class="nam">reindentBlock</span><span class="op">(</span><span class="nam">contents</span><span class="op">)</span><span class="strut"> </span></p> +<p id="t26" class="stm mis"> <span class="nam">f</span><span class="op">.</span><span class="nam">write</span><span class="op">(</span><span class="nam">contents</span><span class="op">)</span><span class="strut"> </span></p> +<p id="t27" class="stm mis"> <span class="nam">f</span><span class="op">.</span><span class="nam">close</span><span class="op">(</span><span class="op">)</span><span class="strut"> </span></p> <p id="t28" class="pln"> <span class="key">else</span><span class="op">:</span><span class="strut"> </span></p> -<p id="t29" class="stm par run hide_run"><span class="annotate" title="Line 29 was executed, but never jumped to line 31">29 ↛ 31 [?]</span> <span class="key">if</span> <span class="key">not</span> <span class="nam">os</span><span class="op">.</span><span class="nam">path</span><span class="op">.</span><span class="nam">exists</span><span class="op">(</span><span class="nam">child</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> -<p id="t30" class="stm run hide_run"> <span class="nam">os</span><span class="op">.</span><span class="nam">mkdir</span><span class="op">(</span><span class="nam">child</span><span class="op">)</span><span class="strut"> </span></p> -<p id="t31" class="stm run hide_run"> <span class="nam">makeFiles</span><span class="op">(</span><span class="nam">contents</span><span class="op">,</span> <span class="nam">child</span><span class="op">)</span><span class="strut"> </span></p> +<p id="t29" class="stm mis"> <span class="key">if</span> <span class="key">not</span> <span class="nam">os</span><span class="op">.</span><span class="nam">path</span><span class="op">.</span><span class="nam">exists</span><span class="op">(</span><span class="nam">child</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> +<p id="t30" class="stm mis"> <span class="nam">os</span><span class="op">.</span><span class="nam">mkdir</span><span class="op">(</span><span class="nam">child</span><span class="op">)</span><span class="strut"> </span></p> +<p id="t31" class="stm mis"> <span class="nam">makeFiles</span><span class="op">(</span><span class="nam">contents</span><span class="op">,</span> <span class="nam">child</span><span class="op">)</span><span class="strut"> </span></p> <p id="t32" class="pln"><span class="strut"> </span></p> <p id="t33" class="stm run hide_run"><span class="key">def</span> <span class="nam">removeFiles</span><span class="op">(</span><span class="nam">d</span><span class="op">,</span> <span class="nam">basedir</span><span class="op">=</span><span class="str">'.'</span><span class="op">)</span><span class="op">:</span><span class="strut"> </span></p> <p id="t34" class="pln"> <span class="str">""" Remove the files created by makeFiles.</span><span class="strut"> </span></p> @@ -207,8 +207,8 @@ <div id="footer"> <div class="content"> <p> - <a class="nav" href="index.html">« index</a> <a class="nav" href="https://coverage.readthedocs.org">coverage.py v4.0.2</a>, - created at 2015-11-04 05:20 + <a class="nav" href="index.html">« index</a> <a class="nav" href="https://coverage.readthedocs.org">coverage.py v4.0.3</a>, + created at 2015-11-24 07:02 </p> </div> </div> |