Permalink
Browse files

Simplify statements. Show updated coverage.

  • Loading branch information...
1 parent fe61275 commit 94d014a87636c15cae0c1240437f0ac828cc27d4 @wolfman2000 committed Nov 29, 2009
View
6 lib/P6Paste/Controller/Register.pm
@@ -42,7 +42,7 @@ sub validate :Local :Args(0) {
# Validate username.
- unless (defined $uname and length $uname)
+ unless (length $uname)
{
push @errors, "You must provide a username to register.";
}
@@ -57,7 +57,7 @@ sub validate :Local :Args(0) {
# Validate email.
- unless (defined $email and length $email)
+ unless (length $email)
{
push @errors, "You must provide an email address.";
}
@@ -72,7 +72,7 @@ sub validate :Local :Args(0) {
# Validate passwords.
- unless (defined $pass1 and length $pass1)
+ unless (length $pass1)
{
push @errors, "You must provide a password to protect your account.";
}
View
22 root/static/cover_db/coverage.html
@@ -24,25 +24,25 @@
<div><br/></div>
<table>
<tr><th>file</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>total</th></tr>
-<tr><td align="left"><a href="lib-P6Paste-pm.html">lib/P6Paste.pm</a></td><td class="c3" title="24 / 24">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="8 / 8"><a href="lib-P6Paste-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.4</td><td class="c3" title="32 / 32">100.0</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Controller-PView-pm.html">lib/P6Paste/Controller/PView.pm</a></td><td class="c2" title="44 / 48">91.7</td><td class="c1" title="5 / 6"><a href="lib-P6Paste-Controller-PView-pm--branch.html">83.3</a></td><td class="c3" title="2 / 2"><a href="lib-P6Paste-Controller-PView-pm--condition.html">100.0</a></td><td class="c3" title="9 / 9"><a href="lib-P6Paste-Controller-PView-pm--subroutine.html">100.0</a></td><td class="c3" title="1 / 1">100.0</td><td> 0.4</td><td class="c2" title="61 / 66">92.4</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Controller-Paste-pm.html">lib/P6Paste/Controller/Paste.pm</a></td><td class="c1" title="51 / 57">89.5</td><td class="c1" title="11 / 14"><a href="lib-P6Paste-Controller-Paste-pm--branch.html">78.6</a></td><td>n/a</td><td class="c3" title="8 / 8"><a href="lib-P6Paste-Controller-Paste-pm--subroutine.html">100.0</a></td><td class="c3" title="2 / 2">100.0</td><td> 0.2</td><td class="c1" title="72 / 81">88.9</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Controller-Register-pm.html">lib/P6Paste/Controller/Register.pm</a></td><td class="c1" title="40 / 49">81.6</td><td class="c0" title="13 / 24"><a href="lib-P6Paste-Controller-Register-pm--branch.html">54.2</a></td><td class="c0" title="5 / 9"><a href="lib-P6Paste-Controller-Register-pm--condition.html">55.6</a></td><td class="c3" title="8 / 8"><a href="lib-P6Paste-Controller-Register-pm--subroutine.html">100.0</a></td><td class="c3" title="2 / 2">100.0</td><td> 0.2</td><td class="c0" title="68 / 92">73.9</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Controller-Root-pm.html">lib/P6Paste/Controller/Root.pm</a></td><td class="c3" title="44 / 44">100.0</td><td class="c3" title="2 / 2"><a href="lib-P6Paste-Controller-Root-pm--branch.html">100.0</a></td><td class="c0" title="2 / 6"><a href="lib-P6Paste-Controller-Root-pm--condition.html">33.3</a></td><td class="c3" title="14 / 14"><a href="lib-P6Paste-Controller-Root-pm--subroutine.html">100.0</a></td><td class="c3" title="4 / 4">100.0</td><td> 0.7</td><td class="c2" title="66 / 70">94.3</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-pm.html">lib/P6Paste.pm</a></td><td class="c3" title="24 / 24">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="8 / 8"><a href="lib-P6Paste-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.8</td><td class="c3" title="32 / 32">100.0</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Controller-PView-pm.html">lib/P6Paste/Controller/PView.pm</a></td><td class="c2" title="44 / 48">91.7</td><td class="c1" title="5 / 6"><a href="lib-P6Paste-Controller-PView-pm--branch.html">83.3</a></td><td class="c3" title="2 / 2"><a href="lib-P6Paste-Controller-PView-pm--condition.html">100.0</a></td><td class="c3" title="9 / 9"><a href="lib-P6Paste-Controller-PView-pm--subroutine.html">100.0</a></td><td class="c3" title="1 / 1">100.0</td><td> 0.6</td><td class="c2" title="61 / 66">92.4</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Controller-Paste-pm.html">lib/P6Paste/Controller/Paste.pm</a></td><td class="c1" title="51 / 57">89.5</td><td class="c1" title="11 / 14"><a href="lib-P6Paste-Controller-Paste-pm--branch.html">78.6</a></td><td>n/a</td><td class="c3" title="8 / 8"><a href="lib-P6Paste-Controller-Paste-pm--subroutine.html">100.0</a></td><td class="c3" title="2 / 2">100.0</td><td> 0.3</td><td class="c1" title="72 / 81">88.9</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Controller-Register-pm.html">lib/P6Paste/Controller/Register.pm</a></td><td class="c1" title="40 / 49">81.6</td><td class="c0" title="13 / 24"><a href="lib-P6Paste-Controller-Register-pm--branch.html">54.2</a></td><td>n/a</td><td class="c3" title="8 / 8"><a href="lib-P6Paste-Controller-Register-pm--subroutine.html">100.0</a></td><td class="c3" title="2 / 2">100.0</td><td> 0.3</td><td class="c1" title="63 / 83">75.9</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Controller-Root-pm.html">lib/P6Paste/Controller/Root.pm</a></td><td class="c3" title="44 / 44">100.0</td><td class="c3" title="2 / 2"><a href="lib-P6Paste-Controller-Root-pm--branch.html">100.0</a></td><td class="c0" title="2 / 6"><a href="lib-P6Paste-Controller-Root-pm--condition.html">33.3</a></td><td class="c3" title="14 / 14"><a href="lib-P6Paste-Controller-Root-pm--subroutine.html">100.0</a></td><td class="c3" title="4 / 4">100.0</td><td> 1.3</td><td class="c2" title="66 / 70">94.3</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Controller-User-pm.html">lib/P6Paste/Controller/User.pm</a></td><td class="c3" title="14 / 14">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="5 / 5"><a href="lib-P6Paste-Controller-User-pm--subroutine.html">100.0</a></td><td class="c3" title="1 / 1">100.0</td><td> 0.1</td><td class="c3" title="20 / 20">100.0</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Model-DBIC-pm.html">lib/P6Paste/Model/DBIC.pm</a></td><td class="c3" title="6 / 6">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="2 / 2"><a href="lib-P6Paste-Model-DBIC-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.0</td><td class="c3" title="8 / 8">100.0</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Model-DBIC-pm.html">lib/P6Paste/Model/DBIC.pm</a></td><td class="c3" title="6 / 6">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="2 / 2"><a href="lib-P6Paste-Model-DBIC-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="8 / 8">100.0</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Schema-pm.html">lib/P6Paste/Schema.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="12 / 12">100.0</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Schema-Result-MessCategories-pm.html">lib/P6Paste/Schema/Result/MessCategories.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="12 / 12">100.0</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Schema-Result-MessCategories-pm.html">lib/P6Paste/Schema/Result/MessCategories.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.2</td><td class="c3" title="12 / 12">100.0</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Schema-Result-Messages-pm.html">lib/P6Paste/Schema/Result/Messages.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-Result-Messages-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="12 / 12">100.0</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Schema-Result-PasteTags-pm.html">lib/P6Paste/Schema/Result/PasteTags.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-Result-PasteTags-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="12 / 12">100.0</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Schema-Result-Pastes-pm.html">lib/P6Paste/Schema/Result/Pastes.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-Result-Pastes-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="12 / 12">100.0</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Schema-Result-Tags-pm.html">lib/P6Paste/Schema/Result/Tags.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-Result-Tags-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="12 / 12">100.0</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Schema-Result-Users-pm.html">lib/P6Paste/Schema/Result/Users.pm</a></td><td class="c3" title="9 / 9">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="3 / 3"><a href="lib-P6Paste-Schema-Result-Users-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="12 / 12">100.0</td></tr>
<tr><td align="left"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm.html">lib/P6Paste/Schema/ResultSet/Messages.pm</a></td><td class="c3" title="13 / 13">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="4 / 4"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html">100.0</a></td><td class="c3" title="1 / 1">100.0</td><td> 0.1</td><td class="c3" title="18 / 18">100.0</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm.html">lib/P6Paste/Schema/ResultSet/Pastes.pm</a></td><td class="c3" title="39 / 39">100.0</td><td class="c3" title="4 / 4"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--branch.html">100.0</a></td><td class="c0" title="2 / 3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--condition.html">66.7</a></td><td class="c3" title="7 / 7"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html">100.0</a></td><td class="c3" title="3 / 3">100.0</td><td>96.6</td><td class="c2" title="55 / 56">98.2</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-Schema-ResultSet-Users-pm.html">lib/P6Paste/Schema/ResultSet/Users.pm</a></td><td class="c1" title="27 / 35">77.1</td><td class="c0" title="2 / 6"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--branch.html">33.3</a></td><td>n/a</td><td class="c1" title="9 / 11"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html">81.8</a></td><td class="c3" title="6 / 6">100.0</td><td> 0.7</td><td class="c1" title="44 / 58">75.9</td></tr>
-<tr><td align="left"><a href="lib-P6Paste-View-TT-pm.html">lib/P6Paste/View/TT.pm</a></td><td class="c3" title="6 / 6">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="2 / 2"><a href="lib-P6Paste-View-TT-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.0</td><td class="c3" title="8 / 8">100.0</td></tr>
-<tr><td align="left">Total</td><td class="c2" title="371 / 398">93.2</td><td class="c0" title="37 / 56">66.1</td><td class="c0" title="11 / 20">55.0</td><td class="c2" title="97 / 99">98.0</td><td class="c3" title="20 / 20">100.0</td><td>100.0</td><td class="c2" title="536 / 593">90.4</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm.html">lib/P6Paste/Schema/ResultSet/Pastes.pm</a></td><td class="c3" title="39 / 39">100.0</td><td class="c3" title="4 / 4"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--branch.html">100.0</a></td><td class="c0" title="2 / 3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--condition.html">66.7</a></td><td class="c3" title="7 / 7"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html">100.0</a></td><td class="c3" title="3 / 3">100.0</td><td>94.3</td><td class="c2" title="55 / 56">98.2</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-Schema-ResultSet-Users-pm.html">lib/P6Paste/Schema/ResultSet/Users.pm</a></td><td class="c1" title="27 / 35">77.1</td><td class="c0" title="2 / 6"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--branch.html">33.3</a></td><td>n/a</td><td class="c1" title="9 / 11"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html">81.8</a></td><td class="c3" title="6 / 6">100.0</td><td> 1.3</td><td class="c1" title="44 / 58">75.9</td></tr>
+<tr><td align="left"><a href="lib-P6Paste-View-TT-pm.html">lib/P6Paste/View/TT.pm</a></td><td class="c3" title="6 / 6">100.0</td><td>n/a</td><td>n/a</td><td class="c3" title="2 / 2"><a href="lib-P6Paste-View-TT-pm--subroutine.html">100.0</a></td><td>n/a</td><td> 0.1</td><td class="c3" title="8 / 8">100.0</td></tr>
+<tr><td align="left">Total</td><td class="c2" title="371 / 398">93.2</td><td class="c0" title="37 / 56">66.1</td><td class="c0" title="6 / 11">54.5</td><td class="c2" title="97 / 99">98.0</td><td class="c3" title="20 / 20">100.0</td><td>100.0</td><td class="c2" title="531 / 584">90.9</td></tr>
</table>
</body>
</html>
View
6 root/static/cover_db/lib-P6Paste-Schema-Result-MessCategories-pm.html
@@ -26,9 +26,9 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::Result::MessCategories;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>53</div><div>25</div><div>53</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>66</div><div>18</div><div>60</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>64</div><div>23</div><div>351</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>55</div><div>23</div><div>54</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>64</div><div>25</div><div>54</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-MessCategories-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>65</div><div>18</div><div>338</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;load_components(&quot;InflateColumn::DateTime&quot;, &quot;Core&quot;);</td></tr>
<tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;table(&quot;mess_categories&quot;);</td></tr>
<tr><td class="h">10</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;add_columns(</td></tr>
View
6 root/static/cover_db/lib-P6Paste-Schema-Result-Messages-pm.html
@@ -26,9 +26,9 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::Result::Messages;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Messages-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>53</div><div>23</div><div>49</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Messages-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>63</div><div>22</div><div>49</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Messages-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>63</div><div>17</div><div>51</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Messages-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>55</div><div>20</div><div>50</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Messages-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>61</div><div>19</div><div>49</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Messages-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>62</div><div>17</div><div>49</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;load_components(&quot;InflateColumn::DateTime&quot;, &quot;Core&quot;);</td></tr>
<tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;table(&quot;messages&quot;);</td></tr>
<tr><td class="h">10</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;add_columns(</td></tr>
View
6 root/static/cover_db/lib-P6Paste-Schema-Result-PasteTags-pm.html
@@ -26,9 +26,9 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::Result::PasteTags;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-PasteTags-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>55</div><div>25</div><div>54</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-PasteTags-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>69</div><div>22</div><div>52</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-PasteTags-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>61</div><div>21</div><div>86</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-PasteTags-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>50</div><div>24</div><div>49</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-PasteTags-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>67</div><div>22</div><div>49</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-PasteTags-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>65</div><div>19</div><div>84</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;load_components(&quot;InflateColumn::DateTime&quot;, &quot;Core&quot;);</td></tr>
<tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;table(&quot;paste_tags&quot;);</td></tr>
<tr><td class="h">10</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;add_columns(</td></tr>
View
6 root/static/cover_db/lib-P6Paste-Schema-Result-Pastes-pm.html
@@ -26,9 +26,9 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::Result::Pastes;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Pastes-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>54</div><div>18</div><div>91</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Pastes-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>65</div><div>20</div><div>98</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Pastes-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>69</div><div>20</div><div>86</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Pastes-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>50</div><div>28</div><div>114</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Pastes-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>62</div><div>23</div><div>93</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Pastes-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>64</div><div>21</div><div>87</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;load_components(&quot;InflateColumn::DateTime&quot;, &quot;Core&quot;);</td></tr>
<tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;table(&quot;pastes&quot;);</td></tr>
<tr><td class="h">10</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;add_columns(</td></tr>
View
6 root/static/cover_db/lib-P6Paste-Schema-Result-Tags-pm.html
@@ -26,9 +26,9 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::Result::Tags;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Tags-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>50</div><div>24</div><div>51</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Tags-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>62</div><div>22</div><div>57</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Tags-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>74</div><div>21</div><div>52</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Tags-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>51</div><div>18</div><div>48</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Tags-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>59</div><div>20</div><div>57</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Tags-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>76</div><div>21</div><div>52</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;load_components(&quot;InflateColumn::DateTime&quot;, &quot;Core&quot;);</td></tr>
<tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;table(&quot;tags&quot;);</td></tr>
<tr><td class="h">10</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;add_columns(</td></tr>
View
6 root/static/cover_db/lib-P6Paste-Schema-Result-Users-pm.html
@@ -26,9 +26,9 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::Result::Users;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Users-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>59</div><div>22</div><div>56</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Users-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>67</div><div>20</div><div>51</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Users-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>66</div><div>16</div><div>222</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Users-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>53</div><div>25</div><div>46</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Users-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>66</div><div>23</div><div>47</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-Result-Users-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>63</div><div>21</div><div>60</div></td><td class="s">use base &#39;DBIx::Class&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;load_components(&quot;InflateColumn::DateTime&quot;, &quot;Core&quot;);</td></tr>
<tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;table(&quot;users&quot;);</td></tr>
<tr><td class="h">10</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;add_columns(</td></tr>
View
12 root/static/cover_db/lib-P6Paste-Schema-ResultSet-Messages-pm.html
@@ -26,15 +26,15 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::ResultSet::Messages;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>53</div><div>18</div><div>55</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>80</div><div>27</div><div>82</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L5">13</a></div></td><td></td><td><div>60</div><div>22</div><div>53</div></td><td class="s">use parent &#39;DBIx::Class::ResultSet&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>52</div><div>22</div><div>49</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>74</div><div>27</div><div>80</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L5">13</a></div></td><td></td><td><div>66</div><div>19</div><div>55</div></td><td class="s">use parent &#39;DBIx::Class::ResultSet&#39;;</td></tr>
<tr><td class="h">6</td><td colspan="7"></td></tr><tr><td class="h">7</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub get_rand_message()</td></tr>
<tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
-<tr><td class="h">9</td><td><div class="c3">8</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L9">8</a></div></td><td><div class="c3">1</div></td><td><div>25</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $cat) = @_; # Force array context.</td></tr>
+<tr><td class="h">9</td><td><div class="c3">8</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Messages-pm--subroutine.html#L9">8</a></div></td><td><div class="c3">1</div></td><td><div>27</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $cat) = @_; # Force array context.</td></tr>
<tr><td class="h">10</td><td><div class="c3">8</div></td><td></td><td></td><td></td><td></td><td><div>29</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my %srch = (&#39;me.cat_id&#39; =&gt; $cat);</td></tr>
-<tr><td class="h">11</td><td><div class="c3">8</div></td><td></td><td></td><td></td><td></td><td><div>47</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my %attr = (&#39;select&#39; =&gt; [&#39;message&#39;], &#39;order_by&#39; =&gt; &#39;RANDOM() LIMIT 1&#39;);</td></tr>
-<tr><td class="h">12</td><td><div class="c3">8</div></td><td></td><td></td><td></td><td></td><td><div>51</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;search(\%srch, \%attr)-&gt;single-&gt;message;</td></tr>
+<tr><td class="h">11</td><td><div class="c3">8</div></td><td></td><td></td><td></td><td></td><td><div>40</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my %attr = (&#39;select&#39; =&gt; [&#39;message&#39;], &#39;order_by&#39; =&gt; &#39;RANDOM() LIMIT 1&#39;);</td></tr>
+<tr><td class="h">12</td><td><div class="c3">8</div></td><td></td><td></td><td></td><td></td><td><div>49</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;search(\%srch, \%attr)-&gt;single-&gt;message;</td></tr>
<tr><td class="h">13</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">14</td><td colspan="7"></td></tr><tr><td class="h">15</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">1;</td></tr>
<tr><td class="h">16</td><td colspan="7"></td></tr></table>
View
46 root/static/cover_db/lib-P6Paste-Schema-ResultSet-Pastes-pm.html
@@ -26,51 +26,51 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::ResultSet::Pastes;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>59</div><div>21</div><div>60</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>72</div><div>20</div><div>49</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L5">13</a></div></td><td></td><td><div>105</div><div>25</div><div>99</div></td><td class="s">use DateTime;</td></tr>
-<tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>102</div><div>25</div><div>102</div></td><td class="s">use parent &#39;DBIx::Class::ResultSet&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>59</div><div>22</div><div>70</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>69</div><div>22</div><div>52</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L5">13</a></div></td><td></td><td><div>88</div><div>26</div><div>92</div></td><td class="s">use DateTime;</td></tr>
+<tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>99</div><div>24</div><div>127</div></td><td class="s">use parent &#39;DBIx::Class::ResultSet&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub add_paste() # Return the new paste ID.</td></tr>
<tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
<tr><td class="h">10</td><td><div class="c3">12</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L10">12</a></div></td><td><div class="c3">1</div></td><td><div>55</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $uid, $subject, $content, $dead, $ip) = @_;</td></tr>
-<tr><td class="h">11</td><td><div class="c3">12</div></td><td></td><td></td><td></td><td></td><td><div>20</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $done;</td></tr>
-<tr><td class="h">12</td><td><div class="c3">12</div></td><td></td><td></td><td></td><td></td><td><div>63</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $now = DateTime-&gt;now;</td></tr>
-<tr><td class="h">13</td><td><div class="c3">12</div></td><td><div class="c3" title="T/F"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--branch.html#L13">100</a></div></td><td><div class="c0"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--condition.html#L13">67</a></div></td><td></td><td></td><td><div>56</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;if (defined $dead and length $dead)</td></tr>
+<tr><td class="h">11</td><td><div class="c3">12</div></td><td></td><td></td><td></td><td></td><td><div>15</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $done;</td></tr>
+<tr><td class="h">12</td><td><div class="c3">12</div></td><td></td><td></td><td></td><td></td><td><div>56</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $now = DateTime-&gt;now;</td></tr>
+<tr><td class="h">13</td><td><div class="c3">12</div></td><td><div class="c3" title="T/F"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--branch.html#L13">100</a></div></td><td><div class="c0"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--condition.html#L13">67</a></div></td><td></td><td></td><td><div>53</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;if (defined $dead and length $dead)</td></tr>
<tr><td class="h">14</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;{</td></tr>
<tr><td class="h">15</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Perl map usage here: map the time chosen.</td></tr>
-<tr><td class="h">16</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>4</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;my @time;</td></tr>
+<tr><td class="h">16</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>13</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;my @time;</td></tr>
<tr><td class="h">17</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>8</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[30] = { minutes =&gt; 30 };</td></tr>
-<tr><td class="h">18</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>3</div><div>45</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 60] = { hours =&gt; $_ } for 1,2,4,8,12;</td></tr>
-<tr><td class="h">19</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>4</div><div>57</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 1440] = { days =&gt; $_ } for 1,2;</td></tr>
-<tr><td class="h">20</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>4</div><div>283</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 10080] = { weeks =&gt; $_ } for 1,2;</td></tr>
-<tr><td class="h">21</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>3</div><div>4042</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 40320] = { months =&gt; $_ } for 1,2,6;</td></tr>
-<tr><td class="h">22</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>5</div><div>709456</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 483840] = { years =&gt; $_} for 1,100;</td></tr>
-<tr><td class="h">23</td><td colspan="7"></td></tr><tr><td class="h">24</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>19</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$done = DateTime-&gt;now-&gt;add($time[$dead] );</td></tr>
+<tr><td class="h">18</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>4</div><div>43</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 60] = { hours =&gt; $_ } for 1,2,4,8,12;</td></tr>
+<tr><td class="h">19</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>4</div><div>58</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 1440] = { days =&gt; $_ } for 1,2;</td></tr>
+<tr><td class="h">20</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>4</div><div>287</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 10080] = { weeks =&gt; $_ } for 1,2;</td></tr>
+<tr><td class="h">21</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>4</div><div>4127</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 40320] = { months =&gt; $_ } for 1,2,6;</td></tr>
+<tr><td class="h">22</td><td><div class="c3">2</div><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>5</div><div>397391</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$time[$_ * 483840] = { years =&gt; $_} for 1,100;</td></tr>
+<tr><td class="h">23</td><td colspan="7"></td></tr><tr><td class="h">24</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>18</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$done = DateTime-&gt;now-&gt;add($time[$dead] );</td></tr>
<tr><td class="h">25</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;}</td></tr>
-<tr><td class="h">26</td><td><div class="c3">12</div></td><td><div class="c3" title="T/F"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--branch.html#L26">100</a></div></td><td></td><td></td><td></td><td><div>21</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $ins = {</td></tr>
+<tr><td class="h">26</td><td><div class="c3">12</div></td><td><div class="c3" title="T/F"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--branch.html#L26">100</a></div></td><td></td><td></td><td></td><td><div>19</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $ins = {</td></tr>
<tr><td class="h">27</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_id =&gt; $uid,</td></tr>
<tr><td class="h">28</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;subject =&gt; $subject,</td></tr>
<tr><td class="h">29</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content =&gt; $content,</td></tr>
<tr><td class="h">30</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tcheck =&gt; join(&quot; &quot;, split(/T/, $now)),</td></tr>
<tr><td class="h">31</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expires =&gt; defined $done ? join(&quot; &quot;, split(/T/, $done)) : undef,</td></tr>
<tr><td class="h">32</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ip =&gt; $ip,</td></tr>
<tr><td class="h">33</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;};</td></tr>
-<tr><td class="h">34</td><td><div class="c3">12</div></td><td></td><td></td><td></td><td></td><td><div>890</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;create($ins)-&gt;id;</td></tr>
+<tr><td class="h">34</td><td><div class="c3">12</div></td><td></td><td></td><td></td><td></td><td><div>860</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;create($ins)-&gt;id;</td></tr>
<tr><td class="h">35</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">36</td><td colspan="7"></td></tr><tr><td class="h">37</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub get_valid_paste()</td></tr>
<tr><td class="h">38</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
-<tr><td class="h">39</td><td><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L39">13</a></div></td><td><div class="c3">1</div></td><td><div>46</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $pid) = @_;</td></tr>
+<tr><td class="h">39</td><td><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L39">13</a></div></td><td><div class="c3">1</div></td><td><div>45</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $pid) = @_;</td></tr>
<tr><td class="h">40</td><td><div class="c3">13</div></td><td></td><td></td><td></td><td></td><td><div>87</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my %srch = (&#39;me.id&#39; =&gt; $pid, expires =&gt; [undef, {&#39;&gt;&#39;, =&gt; \q&lt;datetime(&#39;now&#39;)&gt; }]);</td></tr>
-<tr><td class="h">41</td><td><div class="c3">13</div></td><td></td><td></td><td></td><td></td><td><div>101</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my %attr = (join =&gt; &#39;users&#39;,</td></tr>
+<tr><td class="h">41</td><td><div class="c3">13</div></td><td></td><td></td><td></td><td></td><td><div>98</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my %attr = (join =&gt; &#39;users&#39;,</td></tr>
<tr><td class="h">42</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select =&gt; [qw&lt;me.subject me.content me.tcheck users.uname me.user_id users.pword&gt;], );</td></tr>
-<tr><td class="h">43</td><td><div class="c3">13</div></td><td></td><td></td><td></td><td></td><td><div>65</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;search(\%srch, \%attr)-&gt;first;</td></tr>
+<tr><td class="h">43</td><td><div class="c3">13</div></td><td></td><td></td><td></td><td></td><td><div>67</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;search(\%srch, \%attr)-&gt;first;</td></tr>
<tr><td class="h">44</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">45</td><td colspan="7"></td></tr><tr><td class="h">46</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub get_recent_pastes()</td></tr>
<tr><td class="h">47</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
-<tr><td class="h">48</td><td><div class="c3">47</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L48">47</a></div></td><td><div class="c3">1</div></td><td><div>118</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $self = shift;</td></tr>
-<tr><td class="h">49</td><td><div class="c3">47</div></td><td></td><td></td><td></td><td></td><td><div>281</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $srch = {expires =&gt; [undef, {&#39;&gt;&#39;, =&gt; \q&lt;datetime(&#39;now&#39;)&gt; }] };</td></tr>
-<tr><td class="h">50</td><td><div class="c3">47</div></td><td></td><td></td><td></td><td></td><td><div>205</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $attr = { prefetch =&gt; &#39;users&#39;, order_by =&gt; &#39;tcheck DESC LIMIT 10&#39; };</td></tr>
-<tr><td class="h">51</td><td><div class="c3">47</div></td><td></td><td></td><td></td><td></td><td><div>231</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;search($srch, $attr);</td></tr>
+<tr><td class="h">48</td><td><div class="c3">47</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Pastes-pm--subroutine.html#L48">47</a></div></td><td><div class="c3">1</div></td><td><div>119</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $self = shift;</td></tr>
+<tr><td class="h">49</td><td><div class="c3">47</div></td><td></td><td></td><td></td><td></td><td><div>270</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $srch = {expires =&gt; [undef, {&#39;&gt;&#39;, =&gt; \q&lt;datetime(&#39;now&#39;)&gt; }] };</td></tr>
+<tr><td class="h">50</td><td><div class="c3">47</div></td><td></td><td></td><td></td><td></td><td><div>199</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $attr = { prefetch =&gt; &#39;users&#39;, order_by =&gt; &#39;tcheck DESC LIMIT 10&#39; };</td></tr>
+<tr><td class="h">51</td><td><div class="c3">47</div></td><td></td><td></td><td></td><td></td><td><div>244</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;search($srch, $attr);</td></tr>
<tr><td class="h">52</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">53</td><td colspan="7"></td></tr><tr><td class="h">54</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">1;</td></tr>
<tr><td class="h">55</td><td colspan="7"></td></tr></table>
View
24 root/static/cover_db/lib-P6Paste-Schema-ResultSet-Users-pm.html
@@ -26,11 +26,11 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema::ResultSet::Users;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>52</div><div>24</div><div>51</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>63</div><div>22</div><div>52</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L5">13</a></div></td><td></td><td><div>95</div><div>24</div><div>91</div></td><td class="s">use Digest::SHA qw(sha256_hex);</td></tr>
-<tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>75</div><div>29</div><div>79</div></td><td class="s">use DateTime;</td></tr>
-<tr><td class="h">7</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L7">13</a></div></td><td></td><td><div>62</div><div>21</div><div>86</div></td><td class="s">use parent &#39;DBIx::Class::ResultSet&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>52</div><div>24</div><div>48</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>63</div><div>22</div><div>50</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L5">13</a></div></td><td></td><td><div>93</div><div>24</div><div>91</div></td><td class="s">use Digest::SHA qw(sha256_hex);</td></tr>
+<tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>67</div><div>28</div><div>78</div></td><td class="s">use DateTime;</td></tr>
+<tr><td class="h">7</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L7">13</a></div></td><td></td><td><div>62</div><div>22</div><div>80</div></td><td class="s">use parent &#39;DBIx::Class::ResultSet&#39;;</td></tr>
<tr><td class="h">8</td><td colspan="7"></td></tr><tr><td class="h">9</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub is_name_taken() # Returns an integer </td></tr>
<tr><td class="h">10</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
<tr><td class="h">11</td><td><div class="c3">2</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L11">2</a></div></td><td><div class="c3">1</div></td><td><div>7</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $name) = @_;</td></tr>
@@ -43,16 +43,16 @@
<tr><td class="h">19</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">20</td><td colspan="7"></td></tr><tr><td class="h">21</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub get_name()</td></tr>
<tr><td class="h">22</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
-<tr><td class="h">23</td><td><div class="c3">46</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L23">46</a></div></td><td><div class="c3">1</div></td><td><div>564</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $uid) = @_;</td></tr>
-<tr><td class="h">24</td><td><div class="c3">46</div></td><td></td><td></td><td></td><td></td><td><div>392</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $row = $self-&gt;find($uid, {select =&gt; [&#39;uname&#39;]});</td></tr>
-<tr><td class="h">25</td><td><div class="c3">46</div></td><td><div class="c0" title="-/F"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--branch.html#L25">50</a></div></td><td></td><td></td><td></td><td><div>3632</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return defined $row ? $row-&gt;uname : undef;</td></tr>
+<tr><td class="h">23</td><td><div class="c3">46</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L23">46</a></div></td><td><div class="c3">1</div></td><td><div>562</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $uid) = @_;</td></tr>
+<tr><td class="h">24</td><td><div class="c3">46</div></td><td></td><td></td><td></td><td></td><td><div>391</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $row = $self-&gt;find($uid, {select =&gt; [&#39;uname&#39;]});</td></tr>
+<tr><td class="h">25</td><td><div class="c3">46</div></td><td><div class="c0" title="-/F"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--branch.html#L25">50</a></div></td><td></td><td></td><td></td><td><div>3575</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return defined $row ? $row-&gt;uname : undef;</td></tr>
<tr><td class="h">26</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">27</td><td colspan="7"></td></tr><tr><td class="h">28</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub get_id_row() # Relies on username and &quot;optional&quot; password.</td></tr>
<tr><td class="h">29</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
-<tr><td class="h">30</td><td><div class="c3">2</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L30">2</a></div></td><td><div class="c3">1</div></td><td><div>7</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $name, $pass) = @_;</td></tr>
+<tr><td class="h">30</td><td><div class="c3">2</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L30">2</a></div></td><td><div class="c3">1</div></td><td><div>8</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $name, $pass) = @_;</td></tr>
<tr><td class="h">31</td><td><div class="c3">2</div></td><td><div class="c0" title="-/F"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--branch.html#L31">50</a></div></td><td></td><td></td><td></td><td><div>12</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $srch = {uname =&gt; $name,</td></tr>
<tr><td class="h">32</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pword =&gt; defined $pass ? sha256_hex($pass . &quot;p6&quot;) : undef};</td></tr>
-<tr><td class="h">33</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>9</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $attr = {select =&gt; [&#39;id&#39;], };</td></tr>
+<tr><td class="h">33</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>10</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $attr = {select =&gt; [&#39;id&#39;], };</td></tr>
<tr><td class="h">34</td><td><div class="c3">2</div></td><td></td><td></td><td></td><td></td><td><div>7</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;search($srch, $attr);</td></tr>
<tr><td class="h">35</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">36</td><td colspan="7"></td></tr><tr><td class="h">37</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub add_registered() # Just return a true value.</td></tr>
@@ -75,11 +75,11 @@
<tr><td class="h">54</td><td colspan="7"></td></tr><tr><td class="h">55</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">sub add_unregistered() # Return the ID: that will almost always be used.</td></tr>
<tr><td class="h">56</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">{</td></tr>
<tr><td class="h">57</td><td><div class="c3">1</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-ResultSet-Users-pm--subroutine.html#L57">1</a></div></td><td><div class="c3">1</div></td><td><div>4</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my ($self, $user) = @_;</td></tr>
-<tr><td class="h">58</td><td><div class="c3">1</div></td><td></td><td></td><td></td><td></td><td><div>10</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $ins = {</td></tr>
+<tr><td class="h">58</td><td><div class="c3">1</div></td><td></td><td></td><td></td><td></td><td><div>9</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;my $ins = {</td></tr>
<tr><td class="h">59</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uname =&gt; $user,</td></tr>
<tr><td class="h">60</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;created =&gt; join(&quot; &quot;, split(/T/, DateTime-&gt;now)),</td></tr>
<tr><td class="h">61</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;};</td></tr>
-<tr><td class="h">62</td><td><div class="c3">1</div></td><td></td><td></td><td></td><td></td><td><div>22</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;create($ins)-&gt;id;</td></tr>
+<tr><td class="h">62</td><td><div class="c3">1</div></td><td></td><td></td><td></td><td></td><td><div>23</div></td><td class="s">&nbsp;&nbsp;&nbsp;&nbsp;return $self-&gt;create($ins)-&gt;id;</td></tr>
<tr><td class="h">63</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">}</td></tr>
<tr><td class="h">64</td><td colspan="7"></td></tr><tr><td class="h">65</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">1;</td></tr>
<tr><td class="h">66</td><td colspan="7"></td></tr></table>
View
6 root/static/cover_db/lib-P6Paste-Schema-pm.html
@@ -26,9 +26,9 @@
<table>
<tr><th>line</th><th>stmt</th><th>bran</th><th>cond</th><th>sub</th><th>pod</th><th>time</th><th>code</th></tr>
<tr><td class="h">1</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">package P6Paste::Schema;</td></tr>
-<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>53</div><div>35</div><div>52</div></td><td class="s">use strict;</td></tr>
-<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>70</div><div>21</div><div>54</div></td><td class="s">use warnings;</td></tr>
-<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>63</div><div>20</div><div>68</div></td><td class="s">use base &#39;DBIx::Class::Schema&#39;;</td></tr>
+<tr><td class="h">2</td><td colspan="7"></td></tr><tr><td class="h">3</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-pm--subroutine.html#L3">13</a></div></td><td></td><td><div>51</div><div>20</div><div>53</div></td><td class="s">use strict;</td></tr>
+<tr><td class="h">4</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-pm--subroutine.html#L4">13</a></div></td><td></td><td><div>80</div><div>20</div><div>51</div></td><td class="s">use warnings;</td></tr>
+<tr><td class="h">5</td><td colspan="7"></td></tr><tr><td class="h">6</td><td><div class="c3">13</div><div class="c3">13</div><div class="c3">13</div></td><td></td><td></td><td><div class="c3"><a href="lib-P6Paste-Schema-pm--subroutine.html#L6">13</a></div></td><td></td><td><div>62</div><div>19</div><div>68</div></td><td class="s">use base &#39;DBIx::Class::Schema&#39;;</td></tr>
<tr><td class="h">7</td><td colspan="7"></td></tr><tr><td class="h">8</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s">__PACKAGE__-&gt;load_namespaces;</td></tr>
<tr><td class="h">9</td><td colspan="7"></td></tr><tr><td class="h">10</td><td colspan="7"></td></tr><tr><td class="h">11</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s"># Created by DBIx::Class::Schema::Loader v0.04006 @ 2009-11-14 03:10:00</td></tr>
<tr><td class="h">12</td><td></td><td></td><td></td><td></td><td></td><td></td><td class="s"># DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HL3EhRb4rqLfBckEr6nnUw</td></tr>

0 comments on commit 94d014a

Please sign in to comment.