coverage/index.html in gqli-1.1.0 vs coverage/index.html in gqli-1.2.0

- old
+ new

@@ -1,10272 +1,19552 @@ <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head> - <title>Code coverage for Gqli</title> + <title>Code coverage for Gqli.rb</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <script src='./assets/0.10.2/application.js' type='text/javascript'></script> - <link href='./assets/0.10.2/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'> - <link rel="shortcut icon" type="image/png" href="./assets/0.10.2/favicon_green.png" /> - <link rel="icon" type="image/png" href="./assets/0.10.2/favicon.png" /> + <script src='./assets/0.12.3/application.js' type='text/javascript'></script> + <link href='./assets/0.12.3/application.css' media='screen, projection, print' rel='stylesheet' type='text/css' /> + <link rel="shortcut icon" type="image/png" href="./assets/0.12.3/favicon_green.png" /> + <link rel="icon" type="image/png" href="./assets/0.12.3/favicon.png" /> </head> - + <body> <div id="loading"> - <img src="./assets/0.10.2/loading.gif" alt="loading"/> + <img src="./assets/0.12.3/loading.gif" alt="loading"/> </div> - <div id="wrapper" style="display:none;"> - <div class="timestamp">Generated <abbr class="timeago" title="2019-05-03T15:26:01+02:00">2019-05-03T15:26:01+02:00</abbr></div> + <div id="wrapper" class="hide"> + <div class="timestamp">Generated <abbr class="timeago" title="2022-01-03T17:34:54+01:00">2022-01-03T17:34:54+01:00</abbr></div> <ul class="group_tabs"></ul> <div id="content"> <div class="file_list_container" id="AllFiles"> <h2> <span class="group_name">All Files</span> - (<span class="covered_percent"><span class="green">98.53%</span></span> + (<span class="covered_percent"> + <span class="green"> + 98.61% +</span> + + </span> covered at <span class="covered_strength"> <span class="green"> - 39.75 + 39.52 </span> - </span> hits/line) + </span> hits/line + ) </h2> + <a name="AllFiles"></a> + <div> - <b>18</b> files in total. - <b>746</b> relevant lines. - <span class="green"><b>735</b> lines covered</span> and - <span class="red"><b>11</b> lines missed </span> + <b>19</b> files in total. </div> - <table class="file_list"> - <thead> - <tr> - <th>File</th> - <th>% covered</th> - <th>Lines</th> - <th>Relevant Lines</th> - <th>Lines covered</th> - <th>Lines missed</th> - <th>Avg. Hits / Line</th> - </tr> - </thead> - <tbody> - - <tr> - <td class="strong"><a href="#c4c0ccce18d53f019a15391e06762c3a041e5bae" class="src_link" title="lib/gqli.rb">lib/gqli.rb</a></td> - <td class="green strong">100.0 %</td> - <td>7</td> - <td>5</td> - <td>5</td> - <td>0</td> - <td>1.0</td> - </tr> - - <tr> - <td class="strong"><a href="#a60af6e9955575ceef3cab9bd3242b9048fa6845" class="src_link" title="lib/gqli/base.rb">lib/gqli/base.rb</a></td> - <td class="green strong">100.0 %</td> - <td>64</td> - <td>31</td> - <td>31</td> - <td>0</td> - <td>108.8</td> - </tr> - - <tr> - <td class="strong"><a href="#68dcd39c86205e255ffb6dcb92fa9f24c6f7d923" class="src_link" title="lib/gqli/client.rb">lib/gqli/client.rb</a></td> - <td class="green strong">93.75 %</td> - <td>71</td> - <td>32</td> - <td>30</td> - <td>2</td> - <td>10.3</td> - </tr> - - <tr> - <td class="strong"><a href="#256fff82f19c25133275deedd45d6d640936f554" class="src_link" title="lib/gqli/clients.rb">lib/gqli/clients.rb</a></td> - <td class="green strong">100.0 %</td> - <td>4</td> - <td>2</td> - <td>2</td> - <td>0</td> - <td>1.0</td> - </tr> - - <tr> - <td class="strong"><a href="#e83d3bec7315674f38be5512929d6dd6e4da3350" class="src_link" title="lib/gqli/clients/contentful.rb">lib/gqli/clients/contentful.rb</a></td> - <td class="green strong">100.0 %</td> - <td>20</td> - <td>6</td> - <td>6</td> - <td>0</td> - <td>13.5</td> - </tr> - - <tr> - <td class="strong"><a href="#9ae797b62f9c9d7c3dc6100c985c29378d1a6c73" class="src_link" title="lib/gqli/clients/github.rb">lib/gqli/clients/github.rb</a></td> - <td class="green strong">100.0 %</td> - <td>17</td> - <td>4</td> - <td>4</td> - <td>0</td> - <td>1.8</td> - </tr> - - <tr> - <td class="strong"><a href="#9abd05ccff4ad7a4f5b1bb75901af6e008bc9c5d" class="src_link" title="lib/gqli/dsl.rb">lib/gqli/dsl.rb</a></td> - <td class="green strong">100.0 %</td> - <td>82</td> - <td>27</td> - <td>27</td> - <td>0</td> - <td>2.7</td> - </tr> - - <tr> - <td class="strong"><a href="#8599aaf43ba4686fbd793a6b54bdf898bbb28978" class="src_link" title="lib/gqli/enum_value.rb">lib/gqli/enum_value.rb</a></td> - <td class="green strong">100.0 %</td> - <td>17</td> - <td>7</td> - <td>7</td> - <td>0</td> - <td>2.0</td> - </tr> - - <tr> - <td class="strong"><a href="#049f7e831814eec17f9b96573767e0e1613dd427" class="src_link" title="lib/gqli/fragment.rb">lib/gqli/fragment.rb</a></td> - <td class="green strong">100.0 %</td> - <td>25</td> - <td>10</td> - <td>10</td> - <td>0</td> - <td>2.3</td> - </tr> - - <tr> - <td class="strong"><a href="#07f15b56d18102110d4b398de85375295500eab7" class="src_link" title="lib/gqli/introspection.rb">lib/gqli/introspection.rb</a></td> - <td class="green strong">100.0 %</td> - <td>97</td> - <td>63</td> - <td>63</td> - <td>0</td> - <td>3.9</td> - </tr> - - <tr> - <td class="strong"><a href="#c40220bd28640b7a696c273e3498791096d73ce9" class="src_link" title="lib/gqli/mutation.rb">lib/gqli/mutation.rb</a></td> - <td class="yellow strong">88.89 %</td> - <td>27</td> - <td>9</td> - <td>8</td> - <td>1</td> - <td>2.6</td> - </tr> - - <tr> - <td class="strong"><a href="#827311add0f30734381233709eff6f2feef29107" class="src_link" title="lib/gqli/node.rb">lib/gqli/node.rb</a></td> - <td class="green strong">100.0 %</td> - <td>61</td> - <td>31</td> - <td>31</td> - <td>0</td> - <td>527.1</td> - </tr> - - <tr> - <td class="strong"><a href="#add3b96d53406d04d830c517b925e60e5592500d" class="src_link" title="lib/gqli/query.rb">lib/gqli/query.rb</a></td> - <td class="green strong">100.0 %</td> - <td>29</td> - <td>10</td> - <td>10</td> - <td>0</td> - <td>10.0</td> - </tr> - - <tr> - <td class="strong"><a href="#fc631e4d066aa11a78ad288ef5341c2bc5e2fd9d" class="src_link" title="lib/gqli/response.rb">lib/gqli/response.rb</a></td> - <td class="green strong">100.0 %</td> - <td>15</td> - <td>7</td> - <td>7</td> - <td>0</td> - <td>9.0</td> - </tr> - - <tr> - <td class="strong"><a href="#3b534dd15131bb6d8770662787bf8f8099b5cf25" class="src_link" title="lib/gqli/subscription.rb">lib/gqli/subscription.rb</a></td> - <td class="yellow strong">88.89 %</td> - <td>27</td> - <td>9</td> - <td>8</td> - <td>1</td> - <td>2.6</td> - </tr> - - <tr> - <td class="strong"><a href="#4c31f7a77052c02790c8c5c06fd2085c7022ac23" class="src_link" title="lib/gqli/validation.rb">lib/gqli/validation.rb</a></td> - <td class="green strong">93.27 %</td> - <td>203</td> - <td>104</td> - <td>97</td> - <td>7</td> - <td>80.9</td> - </tr> - - <tr> - <td class="strong"><a href="#8f4756eb3921bfb6ba841bdb3a8d508fd15e06f8" class="src_link" title="spec/lib/gqli/dsl_spec.rb">spec/lib/gqli/dsl_spec.rb</a></td> - <td class="green strong">100.0 %</td> - <td>468</td> - <td>174</td> - <td>174</td> - <td>0</td> - <td>1.1</td> - </tr> - - <tr> - <td class="strong"><a href="#a6d1c1911a021a8ab76d6b8afd1ba662a68cd017" class="src_link" title="spec/lib/gqli/introspection_spec.rb">spec/lib/gqli/introspection_spec.rb</a></td> - <td class="green strong">100.0 %</td> - <td>380</td> - <td>215</td> - <td>215</td> - <td>0</td> - <td>1.6</td> - </tr> - - </tbody> - </table> + + <div class="t-line-summary"> + <b>791</b> relevant lines, + <span class="green"><b>780</b> lines covered</span> and + <span class="red"><b>11</b> lines missed. </span> + (<span class="green"> + 98.61% +</span> +) + </div> + + + + <div class="file_list--responsive"> + <table class="file_list"> + <thead> + <tr> + <th>File</th> + <th class="cell--number">% covered</th> + <th class="cell--number">Lines</th> + <th class="cell--number">Relevant Lines</th> + <th class="cell--number">Lines covered</th> + <th class="cell--number">Lines missed</th> + <th class="cell--number">Avg. Hits / Line</th> + + </tr> + </thead> + <tbody> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#560fa73ba07ddb9e3bd0c30cf7c3d5db7fdd4e9a" class="src_link" title="lib/gqli.rb">lib/gqli.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">7</td> + <td class="cell--number">5</td> + <td class="cell--number">5</td> + <td class="cell--number">0</td> + <td class="cell--number">1.00</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#08e8e7d68cd318d80ce9d933a27ac63ed1e1bc5d" class="src_link" title="lib/gqli/base.rb">lib/gqli/base.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">64</td> + <td class="cell--number">31</td> + <td class="cell--number">31</td> + <td class="cell--number">0</td> + <td class="cell--number">108.81</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#5487e0b5d3c87103e169a202140bca9498e0964a" class="src_link" title="lib/gqli/client.rb">lib/gqli/client.rb</a></td> + <td class="green strong cell--number t-file__coverage">95.24 %</td> + <td class="cell--number">89</td> + <td class="cell--number">42</td> + <td class="cell--number">40</td> + <td class="cell--number">2</td> + <td class="cell--number">15.55</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#ea144fc9a1dd85cdc588e253524ad17eebca431e" class="src_link" title="lib/gqli/clients.rb">lib/gqli/clients.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">4</td> + <td class="cell--number">2</td> + <td class="cell--number">2</td> + <td class="cell--number">0</td> + <td class="cell--number">1.00</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#73b21ead569fa29298de5549b94fdb3f36149733" class="src_link" title="lib/gqli/clients/contentful.rb">lib/gqli/clients/contentful.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">21</td> + <td class="cell--number">6</td> + <td class="cell--number">6</td> + <td class="cell--number">0</td> + <td class="cell--number">16.00</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#95df8bac8d2b747f1b27a8a9a8fe35a8d1708080" class="src_link" title="lib/gqli/clients/github.rb">lib/gqli/clients/github.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">17</td> + <td class="cell--number">4</td> + <td class="cell--number">4</td> + <td class="cell--number">0</td> + <td class="cell--number">1.75</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#fb0610e20188b7cb8b3c8884368ad592721bbf6e" class="src_link" title="lib/gqli/dsl.rb">lib/gqli/dsl.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">82</td> + <td class="cell--number">27</td> + <td class="cell--number">27</td> + <td class="cell--number">0</td> + <td class="cell--number">2.74</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#04dc7b6e37c697d5bcd0d293a340bcb712a228cb" class="src_link" title="lib/gqli/enum_value.rb">lib/gqli/enum_value.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">17</td> + <td class="cell--number">7</td> + <td class="cell--number">7</td> + <td class="cell--number">0</td> + <td class="cell--number">2.00</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#584d61f90fec16213d3e17f63df0b8ffb9f1d206" class="src_link" title="lib/gqli/fragment.rb">lib/gqli/fragment.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">25</td> + <td class="cell--number">10</td> + <td class="cell--number">10</td> + <td class="cell--number">0</td> + <td class="cell--number">2.30</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#0b2b34f54c9a6a170e784204c50560f41c9ce44b" class="src_link" title="lib/gqli/introspection.rb">lib/gqli/introspection.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">97</td> + <td class="cell--number">63</td> + <td class="cell--number">63</td> + <td class="cell--number">0</td> + <td class="cell--number">4.06</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#9d47f4d3bd2563fc0eb2e767aa3817d4cdbad999" class="src_link" title="lib/gqli/mutation.rb">lib/gqli/mutation.rb</a></td> + <td class="yellow strong cell--number t-file__coverage">88.89 %</td> + <td class="cell--number">27</td> + <td class="cell--number">9</td> + <td class="cell--number">8</td> + <td class="cell--number">1</td> + <td class="cell--number">2.56</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#0da1c99f84cc5020bdcf5baff030e67c2dc39eb3" class="src_link" title="lib/gqli/node.rb">lib/gqli/node.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">61</td> + <td class="cell--number">31</td> + <td class="cell--number">31</td> + <td class="cell--number">0</td> + <td class="cell--number">563.03</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#8f46cdcc46a82391ddda9f583874f7fa2be506c9" class="src_link" title="lib/gqli/query.rb">lib/gqli/query.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">29</td> + <td class="cell--number">10</td> + <td class="cell--number">10</td> + <td class="cell--number">0</td> + <td class="cell--number">10.40</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#6e2638357044f7c15c316f4764b57f85ebf565fe" class="src_link" title="lib/gqli/response.rb">lib/gqli/response.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">28</td> + <td class="cell--number">13</td> + <td class="cell--number">13</td> + <td class="cell--number">0</td> + <td class="cell--number">12.15</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#143ace8fdfd9be5e5c829c7d15a073c59baa79de" class="src_link" title="lib/gqli/subscription.rb">lib/gqli/subscription.rb</a></td> + <td class="yellow strong cell--number t-file__coverage">88.89 %</td> + <td class="cell--number">27</td> + <td class="cell--number">9</td> + <td class="cell--number">8</td> + <td class="cell--number">1</td> + <td class="cell--number">2.56</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#571904c8fd99b4016074bfd29a16f5441a379a50" class="src_link" title="lib/gqli/validation.rb">lib/gqli/validation.rb</a></td> + <td class="green strong cell--number t-file__coverage">93.27 %</td> + <td class="cell--number">203</td> + <td class="cell--number">104</td> + <td class="cell--number">97</td> + <td class="cell--number">7</td> + <td class="cell--number">80.88</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#2af0d9e5fc34b660392ccf94253890cc4754c950" class="src_link" title="spec/lib/gqli/dsl_spec.rb">spec/lib/gqli/dsl_spec.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">468</td> + <td class="cell--number">174</td> + <td class="cell--number">174</td> + <td class="cell--number">0</td> + <td class="cell--number">1.14</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#b8ea11d4300da5a59748990f6c9de1ebb2b7117e" class="src_link" title="spec/lib/gqli/introspection_spec.rb">spec/lib/gqli/introspection_spec.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">380</td> + <td class="cell--number">215</td> + <td class="cell--number">215</td> + <td class="cell--number">0</td> + <td class="cell--number">1.55</td> + + </tr> + + <tr class="t-file"> + <td class="strong t-file__name"><a href="#e308ae0c091131b8856c9b6fd42e262820f8b2b9" class="src_link" title="spec/lib/gqli/response_spec.rb">spec/lib/gqli/response_spec.rb</a></td> + <td class="green strong cell--number t-file__coverage">100.00 %</td> + <td class="cell--number">51</td> + <td class="cell--number">29</td> + <td class="cell--number">29</td> + <td class="cell--number">0</td> + <td class="cell--number">1.69</td> + + </tr> + + </tbody> + </table> + </div> </div> </div> - + <div id="footer"> - Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.16.1 - and simplecov-html v0.10.2<br/> + Generated by <a href="https://github.com/simplecov-ruby/simplecov">simplecov</a> v0.21.2 + and simplecov-html v0.12.3<br/> using RSpec </div> - + <div class="source_files"> - <div class="source_table" id="c4c0ccce18d53f019a15391e06762c3a041e5bae"> + <div class="source_table" id="560fa73ba07ddb9e3bd0c30cf7c3d5db7fdd4e9a"> <div class="header"> <h3>lib/gqli.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>5</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>5</b> relevant lines. <span class="green"><b>5</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./gqli/dsl&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./gqli/dsl&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="4"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./gqli/client&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="4"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./gqli/client&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./gqli/introspection&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./gqli/introspection&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="6"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./gqli/version&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="6"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./gqli/version&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./gqli/clients&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./gqli/clients&#39;</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="a60af6e9955575ceef3cab9bd3242b9048fa6845"> + <div class="source_table" id="08e8e7d68cd318d80ce9d933a27ac63ed1e1bc5d"> <div class="header"> <h3>lib/gqli/base.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>31</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>31</b> relevant lines. <span class="green"><b>31</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./enum_value&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./enum_value&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Base class for GraphQL type wrappers</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Base class for GraphQL type wrappers</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> class Base</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Base</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="8"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :__name, :__depth, :__nodes</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="8"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :__name, :__depth, :__nodes</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="9"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="9"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="10"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(name = nil, depth = 0, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="10"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(name = nil, depth = 0, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="401" data-linenumber="11"> - <span class="hits">401</span> - - <code class="ruby"> @__name = name</code> - </li> + <div> + <li class="covered" data-hits="401" data-linenumber="11"> + <span class="hits">401</span> + + + + + <code class="ruby"> @__name = name</code> + </li> + </div> - <li class="covered" data-hits="401" data-linenumber="12"> - <span class="hits">401</span> - - <code class="ruby"> @__depth = depth</code> - </li> + <div> + <li class="covered" data-hits="401" data-linenumber="12"> + <span class="hits">401</span> + + + + + <code class="ruby"> @__depth = depth</code> + </li> + </div> - <li class="covered" data-hits="401" data-linenumber="13"> - <span class="hits">401</span> - - <code class="ruby"> @__nodes = []</code> - </li> + <div> + <li class="covered" data-hits="401" data-linenumber="13"> + <span class="hits">401</span> + + + + + <code class="ruby"> @__nodes = []</code> + </li> + </div> - <li class="covered" data-hits="401" data-linenumber="14"> - <span class="hits">401</span> - - <code class="ruby"> instance_eval(&amp;block) unless block.nil?</code> - </li> + <div> + <li class="covered" data-hits="401" data-linenumber="14"> + <span class="hits">401</span> + + + + + <code class="ruby"> instance_eval(&amp;block) unless block.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby"> # Inlines fragment nodes into current node</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby"> # Inlines fragment nodes into current node</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="18"> - <span class="hits">1</span> - - <code class="ruby"> def ___(fragment)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="18"> + <span class="hits">1</span> + + + + + <code class="ruby"> def ___(fragment)</code> + </li> + </div> - <li class="covered" data-hits="10" data-linenumber="19"> - <span class="hits">10</span> - - <code class="ruby"> @__nodes += __clone_nodes(fragment)</code> - </li> + <div> + <li class="covered" data-hits="10" data-linenumber="19"> + <span class="hits">10</span> + + + + + <code class="ruby"> @__nodes += __clone_nodes(fragment)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"> # Adds type match node</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"> # Adds type match node</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="23"> - <span class="hits">1</span> - - <code class="ruby"> def __on(type_name, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __on(type_name, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="24"> - <span class="hits">3</span> - - <code class="ruby"> __node(&quot;... on #{type_name}&quot;, {}, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="24"> + <span class="hits">3</span> + + + + + <code class="ruby"> __node(&quot;... on #{type_name}&quot;, {}, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="26"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby"> # Adds children node into current node</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"> # Adds children node into current node</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="28"> - <span class="hits">1</span> - - <code class="ruby"> def __node(name, params = {}, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="28"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __node(name, params = {}, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="174" data-linenumber="29"> - <span class="hits">174</span> - - <code class="ruby"> require_relative &#39;./node&#39;</code> - </li> + <div> + <li class="covered" data-hits="174" data-linenumber="29"> + <span class="hits">174</span> + + + + + <code class="ruby"> require_relative &#39;./node&#39;</code> + </li> + </div> - <li class="covered" data-hits="174" data-linenumber="30"> - <span class="hits">174</span> - - <code class="ruby"> @__nodes &lt;&lt; Node.new(name, params, __depth + 1, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="174" data-linenumber="30"> + <span class="hits">174</span> + + + + + <code class="ruby"> @__nodes &lt;&lt; Node.new(name, params, __depth + 1, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="31"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="31"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="32"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="32"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="33"> - - - <code class="ruby"> # Creates an EnumType value</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="33"> + + + + + + <code class="ruby"> # Creates an EnumType value</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="34"> - <span class="hits">1</span> - - <code class="ruby"> def __enum(value)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="34"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __enum(value)</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="35"> - <span class="hits">2</span> - - <code class="ruby"> EnumValue.new(value)</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="35"> + <span class="hits">2</span> + + + + + <code class="ruby"> EnumValue.new(value)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="36"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="36"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="37"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="37"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="38"> - <span class="hits">1</span> - - <code class="ruby"> protected</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="38"> + <span class="hits">1</span> + + + + + <code class="ruby"> protected</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="39"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="39"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="40"> - <span class="hits">1</span> - - <code class="ruby"> def __clone_nodes(node_container)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="40"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __clone_nodes(node_container)</code> + </li> + </div> - <li class="covered" data-hits="182" data-linenumber="41"> - <span class="hits">182</span> - - <code class="ruby"> require_relative &#39;./node&#39;</code> - </li> + <div> + <li class="covered" data-hits="182" data-linenumber="41"> + <span class="hits">182</span> + + + + + <code class="ruby"> require_relative &#39;./node&#39;</code> + </li> + </div> - <li class="covered" data-hits="182" data-linenumber="42"> - <span class="hits">182</span> - - <code class="ruby"> __clone(node_container.__nodes).map do |n|</code> - </li> + <div> + <li class="covered" data-hits="182" data-linenumber="42"> + <span class="hits">182</span> + + + + + <code class="ruby"> __clone(node_container.__nodes).map do |n|</code> + </li> + </div> - <li class="covered" data-hits="172" data-linenumber="43"> - <span class="hits">172</span> - - <code class="ruby"> node = Node.new(n.__name, n.__params, __depth + 1)</code> - </li> + <div> + <li class="covered" data-hits="172" data-linenumber="43"> + <span class="hits">172</span> + + + + + <code class="ruby"> node = Node.new(n.__name, n.__params, __depth + 1)</code> + </li> + </div> - <li class="covered" data-hits="172" data-linenumber="44"> - <span class="hits">172</span> - - <code class="ruby"> node.instance_variable_set(</code> - </li> + <div> + <li class="covered" data-hits="172" data-linenumber="44"> + <span class="hits">172</span> + + + + + <code class="ruby"> node.instance_variable_set(</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="45"> - - - <code class="ruby"> :@__nodes,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="45"> + + + + + + <code class="ruby"> :@__nodes,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="46"> - - - <code class="ruby"> node.send(:__clone_nodes, n)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="46"> + + + + + + <code class="ruby"> node.send(:__clone_nodes, n)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="47"> - - - <code class="ruby"> )</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="47"> + + + + + + <code class="ruby"> )</code> + </li> + </div> - <li class="covered" data-hits="172" data-linenumber="48"> - <span class="hits">172</span> - - <code class="ruby"> node</code> - </li> + <div> + <li class="covered" data-hits="172" data-linenumber="48"> + <span class="hits">172</span> + + + + + <code class="ruby"> node</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="49"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="49"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="50"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="50"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="51"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="51"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="52"> - <span class="hits">1</span> - - <code class="ruby"> def __clone(obj)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="52"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __clone(obj)</code> + </li> + </div> - <li class="covered" data-hits="182" data-linenumber="53"> - <span class="hits">182</span> - - <code class="ruby"> Marshal.load(Marshal.dump(obj))</code> - </li> + <div> + <li class="covered" data-hits="182" data-linenumber="53"> + <span class="hits">182</span> + + + + + <code class="ruby"> Marshal.load(Marshal.dump(obj))</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="54"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="54"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="55"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="55"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="56"> - <span class="hits">1</span> - - <code class="ruby"> def __params_from_args(args)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="56"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __params_from_args(args)</code> + </li> + </div> - <li class="covered" data-hits="165" data-linenumber="57"> - <span class="hits">165</span> - - <code class="ruby"> args.empty? ? {} : args[0]</code> - </li> + <div> + <li class="covered" data-hits="165" data-linenumber="57"> + <span class="hits">165</span> + + + + + <code class="ruby"> args.empty? ? {} : args[0]</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="58"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="58"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="59"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="59"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="60"> - <span class="hits">1</span> - - <code class="ruby"> def method_missing(name, *args, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="60"> + <span class="hits">1</span> + + + + + <code class="ruby"> def method_missing(name, *args, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="165" data-linenumber="61"> - <span class="hits">165</span> - - <code class="ruby"> __node(name.to_s, __params_from_args(args), &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="165" data-linenumber="61"> + <span class="hits">165</span> + + + + + <code class="ruby"> __node(name.to_s, __params_from_args(args), &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="62"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="62"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="63"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="63"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="64"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="64"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="68dcd39c86205e255ffb6dcb92fa9f24c6f7d923"> + <div class="source_table" id="5487e0b5d3c87103e169a202140bca9498e0964a"> <div class="header"> <h3>lib/gqli/client.rb</h3> - <h4><span class="green">93.75 %</span> covered</h4> - <div> - <b>32</b> relevant lines. - <span class="green"><b>30</b> lines covered</span> and + <h4> + <span class="green"> + 95.24% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>42</b> relevant lines. + <span class="green"><b>40</b> lines covered</span> and <span class="red"><b>2</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require &#39;http&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require &#39;http&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="4"> - <span class="hits">1</span> - - <code class="ruby">require &#39;json&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="4"> + <span class="hits">1</span> + + + + + <code class="ruby">require &#39;json&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./response&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./response&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="6"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./introspection&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="6"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./introspection&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./version&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./version&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="8"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="8"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="9"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="9"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"> # GraphQL HTTP Client</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"> # GraphQL HTTP Client</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="11"> - <span class="hits">1</span> - - <code class="ruby"> class Client</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="11"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Client</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="12"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :url, :params, :headers, :validate_query, :schema</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="12"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :url, :params, :headers, :validate_query, :schema, :options</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="14"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(url, params: {}, headers: {}, validate_query: true)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="14"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(url, params: {}, headers: {}, validate_query: true, options: {})</code> + </li> + </div> - <li class="covered" data-hits="30" data-linenumber="15"> - <span class="hits">30</span> - - <code class="ruby"> @url = url</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="15"> + <span class="hits">35</span> + + + + + <code class="ruby"> @url = url</code> + </li> + </div> - <li class="covered" data-hits="30" data-linenumber="16"> - <span class="hits">30</span> - - <code class="ruby"> @params = params</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="16"> + <span class="hits">35</span> + + + + + <code class="ruby"> @params = params</code> + </li> + </div> - <li class="covered" data-hits="30" data-linenumber="17"> - <span class="hits">30</span> - - <code class="ruby"> @headers = headers</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="17"> + <span class="hits">35</span> + + + + + <code class="ruby"> @headers = headers</code> + </li> + </div> - <li class="covered" data-hits="30" data-linenumber="18"> - <span class="hits">30</span> - - <code class="ruby"> @validate_query = validate_query</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="18"> + <span class="hits">35</span> + + + + + <code class="ruby"> @validate_query = validate_query</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="19"> - - - <code class="ruby"></code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="19"> + <span class="hits">35</span> + + + + + <code class="ruby"> @options = options</code> + </li> + </div> - <li class="covered" data-hits="30" data-linenumber="20"> - <span class="hits">30</span> - - <code class="ruby"> @schema = Introspection.new(self) if validate_query</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="20"> + <span class="hits">35</span> + + + + + <code class="ruby"> @options[:read_timeout] ||= 60</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="21"> + <span class="hits">35</span> + + + + + <code class="ruby"> @options[:write_timeout] ||= 60</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"></code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="22"> + <span class="hits">35</span> + + + + + <code class="ruby"> @options[:connect_timeout] ||= 60</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="23"> - - - <code class="ruby"> # Executes a query</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="23"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="24"> - - - <code class="ruby"> # If validations are enabled, will perform validation check before request.</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="24"> + <span class="hits">35</span> + + + + + <code class="ruby"> @schema = Introspection.new(self) if validate_query</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="25"> - <span class="hits">1</span> - - <code class="ruby"> def execute(query)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="covered" data-hits="4" data-linenumber="26"> - <span class="hits">4</span> - - <code class="ruby"> if validate_query</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="27"> - <span class="hits">3</span> - - <code class="ruby"> validation = schema.validate(query)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"> # Executes a query</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="28"> - <span class="hits">3</span> - - <code class="ruby"> fail validation_error_message(validation) unless validation.valid?</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="28"> + + + + + + <code class="ruby"> # If validations are enabled, will perform validation check before request.</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="29"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="29"> + <span class="hits">1</span> + + + + + <code class="ruby"> def execute(query)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="30"> - - - <code class="ruby"></code> - </li> + <div> + <li class="covered" data-hits="4" data-linenumber="30"> + <span class="hits">4</span> + + + + + <code class="ruby"> if validate_query</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="31"> - <span class="hits">3</span> - - <code class="ruby"> execute!(query)</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="31"> + <span class="hits">3</span> + + + + + <code class="ruby"> validation = schema.validate(query)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="32"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="32"> + <span class="hits">3</span> + + + + + <code class="ruby"> fail validation_error_message(validation) unless validation.valid?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="33"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="33"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="34"> - - - <code class="ruby"> # Executres a query</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="34"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="35"> - - - <code class="ruby"> # Ignores validations</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="35"> + <span class="hits">3</span> + + + + + <code class="ruby"> execute!(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="36"> - <span class="hits">1</span> - - <code class="ruby"> def execute!(query)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="36"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="covered" data-hits="31" data-linenumber="37"> - <span class="hits">31</span> - - <code class="ruby"> http_response = HTTP.headers(request_headers).post(@url, params: @params, json: { query: query.to_gql })</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="37"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="38"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="38"> + + + + + + <code class="ruby"> # Executres a query</code> + </li> + </div> - <li class="covered" data-hits="31" data-linenumber="39"> - <span class="hits">31</span> - - <code class="ruby"> fail &quot;Error: #{http_response.reason}\nBody: #{http_response.body}&quot; if http_response.status &gt;= 300</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="39"> + + + + + + <code class="ruby"> # Ignores validations</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="40"> - - - <code class="ruby"></code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="40"> + <span class="hits">1</span> + + + + + <code class="ruby"> def execute!(query)</code> + </li> + </div> - <li class="covered" data-hits="29" data-linenumber="41"> - <span class="hits">29</span> - - <code class="ruby"> data = JSON.parse(http_response.to_s)[&#39;data&#39;]</code> - </li> + <div> + <li class="covered" data-hits="33" data-linenumber="41"> + <span class="hits">33</span> + + + + + <code class="ruby"> http_response = request.post(@url, params: @params, json: { query: query.to_gql })</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="42"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="42"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="29" data-linenumber="43"> - <span class="hits">29</span> - - <code class="ruby"> Response.new(data, query)</code> - </li> + <div> + <li class="covered" data-hits="33" data-linenumber="43"> + <span class="hits">33</span> + + + + + <code class="ruby"> fail &quot;Error: #{http_response.reason}\nBody: #{http_response.body}&quot; if http_response.status &gt;= 300</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="44"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="44"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="45"> - - - <code class="ruby"></code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="45"> + <span class="hits">31</span> + + + + + <code class="ruby"> parsed_response = JSON.parse(http_response.to_s)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="46"> - - - <code class="ruby"> # Validates a query against the schema</code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="46"> + <span class="hits">31</span> + + + + + <code class="ruby"> data = parsed_response[&#39;data&#39;]</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="47"> - <span class="hits">1</span> - - <code class="ruby"> def valid?(query)</code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="47"> + <span class="hits">31</span> + + + + + <code class="ruby"> errors = parsed_response[&#39;errors&#39;]</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="48"> - - - <code class="ruby"> return true unless validate_query</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="48"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="49"> - - - <code class="ruby"></code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="49"> + <span class="hits">31</span> + + + + + <code class="ruby"> Response.new(data, errors, query)</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="50"> - - - <code class="ruby"> schema.valid?(query)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="50"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="51"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="51"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="52"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="52"> + + + + + + <code class="ruby"> # Validates a query against the schema</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="53"> - <span class="hits">1</span> - - <code class="ruby"> protected</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="53"> + <span class="hits">1</span> + + + + + <code class="ruby"> def valid?(query)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="54"> - - - <code class="ruby"></code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="54"> + + + + + + <code class="ruby"> return true unless validate_query</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="55"> - <span class="hits">1</span> - - <code class="ruby"> def validation_error_message(validation)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="55"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="56"> - <span class="hits">1</span> - - <code class="ruby"> &lt;&lt;~ERROR</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="56"> + + + + + + <code class="ruby"> schema.valid?(query)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="57"> - - - <code class="ruby"> Validation Error: query is invalid - HTTP Request not sent.</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="57"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="58"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="58"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="59"> - - - <code class="ruby"> Errors:</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="59"> + <span class="hits">1</span> + + + + + <code class="ruby"> def request</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="60"> - - - <code class="ruby"> - #{validation.errors.join(&quot;\n - &quot;)}</code> - </li> + <div> + <li class="covered" data-hits="39" data-linenumber="60"> + <span class="hits">39</span> + + + + + <code class="ruby"> HTTP.headers(request_headers).timeout(timeout_options)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="61"> - - - <code class="ruby"> ERROR</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="61"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="62"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="62"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="63"> - - - <code class="ruby"></code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="63"> + <span class="hits">1</span> + + + + + <code class="ruby"> protected</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="64"> - <span class="hits">1</span> - - <code class="ruby"> def request_headers</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="64"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="65"> - - - <code class="ruby"> {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="65"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validation_error_message(validation)</code> + </li> + </div> - <li class="covered" data-hits="31" data-linenumber="66"> - <span class="hits">31</span> - - <code class="ruby"> accept: &#39;application/json&#39;,</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="66"> + <span class="hits">1</span> + + + + + <code class="ruby"> &lt;&lt;~ERROR</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="67"> - - - <code class="ruby"> user_agent: &quot;gqli.rb/#{VERSION}; http.rb/#{HTTP::VERSION}&quot;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="67"> + + + + + + <code class="ruby"> Validation Error: query is invalid - HTTP Request not sent.</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="68"> - - - <code class="ruby"> }.merge(@headers)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="68"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="69"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="69"> + + + + + + <code class="ruby"> Errors:</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="70"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="70"> + + + + + + <code class="ruby"> - #{validation.errors.join(&quot;\n - &quot;)}</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="71"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="71"> + + + + + + <code class="ruby"> ERROR</code> + </li> + </div> + <div> + <li class="never" data-hits="" data-linenumber="72"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="73"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="74"> + <span class="hits">1</span> + + + + + <code class="ruby"> def request_headers</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="75"> + + + + + + <code class="ruby"> {</code> + </li> + </div> + + <div> + <li class="covered" data-hits="39" data-linenumber="76"> + <span class="hits">39</span> + + + + + <code class="ruby"> accept: &#39;application/json&#39;,</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="77"> + + + + + + <code class="ruby"> user_agent: &quot;gqli.rb/#{VERSION}; http.rb/#{HTTP::VERSION}&quot;</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="78"> + + + + + + <code class="ruby"> }.merge(@headers)</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="79"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="80"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="81"> + <span class="hits">1</span> + + + + + <code class="ruby"> def timeout_options</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="82"> + + + + + + <code class="ruby"> {</code> + </li> + </div> + + <div> + <li class="covered" data-hits="39" data-linenumber="83"> + <span class="hits">39</span> + + + + + <code class="ruby"> write: options[:write_timeout],</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="84"> + + + + + + <code class="ruby"> connect: options[:connect_timeout],</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="85"> + + + + + + <code class="ruby"> read: options[:read_timeout]</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="86"> + + + + + + <code class="ruby"> }</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="87"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="88"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="89"> + + + + + + <code class="ruby">end</code> + </li> + </div> + </ol> </pre> </div> - <div class="source_table" id="256fff82f19c25133275deedd45d6d640936f554"> + <div class="source_table" id="ea144fc9a1dd85cdc588e253524ad17eebca431e"> <div class="header"> <h3>lib/gqli/clients.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>2</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>2</b> relevant lines. <span class="green"><b>2</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./clients/contentful&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./clients/contentful&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="4"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./clients/github&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="4"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./clients/github&#39;</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="e83d3bec7315674f38be5512929d6dd6e4da3350"> + <div class="source_table" id="73b21ead569fa29298de5549b94fdb3f36149733"> <div class="header"> <h3>lib/gqli/clients/contentful.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>6</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>6</b> relevant lines. <span class="green"><b>6</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"> # Module for creating a Contentful GraphQL client</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"> # Module for creating a Contentful GraphQL client</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby"> module Contentful</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby"> module Contentful</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Creates a Contentful GraphQL client</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Creates a Contentful GraphQL client</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> def self.create(space, access_token, environment: nil, validate_query: true)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> def self.create(space, access_token, environment: nil, validate_query: true, options: {})</code> + </li> + </div> - <li class="covered" data-hits="26" data-linenumber="8"> - <span class="hits">26</span> - - <code class="ruby"> api_url = &quot;https://graphql.contentful.com/content/v1/spaces/#{space}&quot;</code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="8"> + <span class="hits">31</span> + + + + + <code class="ruby"> api_url = &quot;https://graphql.contentful.com/content/v1/spaces/#{space}&quot;</code> + </li> + </div> - <li class="covered" data-hits="26" data-linenumber="9"> - <span class="hits">26</span> - - <code class="ruby"> api_url += &quot;/environments/#{environment}&quot; unless environment.nil?</code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="9"> + <span class="hits">31</span> + + + + + <code class="ruby"> api_url += &quot;/environments/#{environment}&quot; unless environment.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="26" data-linenumber="11"> - <span class="hits">26</span> - - <code class="ruby"> GQLi::Client.new(</code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="11"> + <span class="hits">31</span> + + + + + <code class="ruby"> GQLi::Client.new(</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"> api_url,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"> api_url,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"> headers: {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"> headers: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"> &#39;Authorization&#39; =&gt; &quot;Bearer #{access_token}&quot;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> &#39;Authorization&#39; =&gt; &quot;Bearer #{access_token}&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> },</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> },</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"> validate_query: validate_query</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"> validate_query: validate_query,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby"> )</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby"> options: options</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="18"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="18"> + + + + + + <code class="ruby"> )</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="19"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby">end</code> + </li> + </div> + </ol> </pre> </div> - <div class="source_table" id="9ae797b62f9c9d7c3dc6100c985c29378d1a6c73"> + <div class="source_table" id="95df8bac8d2b747f1b27a8a9a8fe35a8d1708080"> <div class="header"> <h3>lib/gqli/clients/github.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>4</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>4</b> relevant lines. <span class="green"><b>4</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"> # Module for creating a Github GraphQL client</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"> # Module for creating a Github GraphQL client</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby"> module Github</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby"> module Github</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Creates a Github GraphQL client</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Creates a Github GraphQL client</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> def self.create(access_token, validate_query: true)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> def self.create(access_token, validate_query: true)</code> + </li> + </div> - <li class="covered" data-hits="4" data-linenumber="8"> - <span class="hits">4</span> - - <code class="ruby"> GQLi::Client.new(</code> - </li> + <div> + <li class="covered" data-hits="4" data-linenumber="8"> + <span class="hits">4</span> + + + + + <code class="ruby"> GQLi::Client.new(</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="9"> - - - <code class="ruby"> &#39;https://api.github.com/graphql&#39;,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="9"> + + + + + + <code class="ruby"> &#39;https://api.github.com/graphql&#39;,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"> headers: {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"> headers: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="11"> - - - <code class="ruby"> &#39;Authorization&#39; =&gt; &quot;Bearer #{access_token}&quot;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="11"> + + + + + + <code class="ruby"> &#39;Authorization&#39; =&gt; &quot;Bearer #{access_token}&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"> },</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"> },</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"> validate_query: validate_query</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"> validate_query: validate_query</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"> )</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> )</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="9abd05ccff4ad7a4f5b1bb75901af6e008bc9c5d"> + <div class="source_table" id="fb0610e20188b7cb8b3c8884368ad592721bbf6e"> <div class="header"> <h3>lib/gqli/dsl.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>27</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>27</b> relevant lines. <span class="green"><b>27</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./query&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./query&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="4"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./mutation&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="4"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./mutation&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./subscription&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./subscription&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="6"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./fragment&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="6"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./fragment&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./enum_value&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./enum_value&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="8"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="8"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="9"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="9"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"> # GraphQL-like DSL methods</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"> # GraphQL-like DSL methods</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="11"> - <span class="hits">1</span> - - <code class="ruby"> module DSL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="11"> + <span class="hits">1</span> + + + + + <code class="ruby"> module DSL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"> # Creates a Query object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"> # Creates a Query object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"> # Can be used at a class level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> # Can be used at a class level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="15"> - <span class="hits">1</span> - - <code class="ruby"> def self.query(name = nil, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="15"> + <span class="hits">1</span> + + + + + <code class="ruby"> def self.query(name = nil, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="16"> - <span class="hits">34</span> - - <code class="ruby"> Query.new(name, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="16"> + <span class="hits">34</span> + + + + + <code class="ruby"> Query.new(name, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="18"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="18"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="19"> - - - <code class="ruby"> # Creates a Subscription object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> # Creates a Subscription object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"> # Can be used at a class level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"> # Can be used at a class level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="22"> - <span class="hits">1</span> - - <code class="ruby"> def self.subscription(name = nil, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="22"> + <span class="hits">1</span> + + + + + <code class="ruby"> def self.subscription(name = nil, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="23"> - <span class="hits">2</span> - - <code class="ruby"> Subscription.new(name, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="23"> + <span class="hits">2</span> + + + + + <code class="ruby"> Subscription.new(name, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="24"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="24"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="26"> - - - <code class="ruby"> # Creates a Mutation object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"> # Creates a Mutation object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="28"> - - - <code class="ruby"> # Can be used at a class level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="28"> + + + + + + <code class="ruby"> # Can be used at a class level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="29"> - <span class="hits">1</span> - - <code class="ruby"> def self.mutation(name = nil, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="29"> + <span class="hits">1</span> + + + + + <code class="ruby"> def self.mutation(name = nil, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="5" data-linenumber="30"> - <span class="hits">5</span> - - <code class="ruby"> Mutation.new(name, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="5" data-linenumber="30"> + <span class="hits">5</span> + + + + + <code class="ruby"> Mutation.new(name, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="31"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="31"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="32"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="32"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="33"> - - - <code class="ruby"> # Creates a Fragment object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="33"> + + + + + + <code class="ruby"> # Creates a Fragment object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="34"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="34"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="35"> - - - <code class="ruby"> # Can be used at a class level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="35"> + + + + + + <code class="ruby"> # Can be used at a class level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="36"> - <span class="hits">1</span> - - <code class="ruby"> def self.fragment(name, on, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="36"> + <span class="hits">1</span> + + + + + <code class="ruby"> def self.fragment(name, on, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="37"> - <span class="hits">3</span> - - <code class="ruby"> Fragment.new(name, on, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="37"> + <span class="hits">3</span> + + + + + <code class="ruby"> Fragment.new(name, on, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="38"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="38"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="39"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="39"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="40"> - - - <code class="ruby"> # Creates a EnumValue object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="40"> + + + + + + <code class="ruby"> # Creates a EnumValue object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="41"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="41"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="42"> - - - <code class="ruby"> # Can be used at a class level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="42"> + + + + + + <code class="ruby"> # Can be used at a class level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="43"> - <span class="hits">1</span> - - <code class="ruby"> def self.enum(value)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="43"> + <span class="hits">1</span> + + + + + <code class="ruby"> def self.enum(value)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="44"> - <span class="hits">1</span> - - <code class="ruby"> EnumValue.new(value)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="44"> + <span class="hits">1</span> + + + + + <code class="ruby"> EnumValue.new(value)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="45"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="45"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="46"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="46"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="47"> - - - <code class="ruby"> # Creates a Query object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="47"> + + + + + + <code class="ruby"> # Creates a Query object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="48"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="48"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="49"> - - - <code class="ruby"> # Can be used at an instance level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="49"> + + + + + + <code class="ruby"> # Can be used at an instance level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="50"> - <span class="hits">1</span> - - <code class="ruby"> def query(name = nil, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="50"> + <span class="hits">1</span> + + + + + <code class="ruby"> def query(name = nil, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="51"> - <span class="hits">3</span> - - <code class="ruby"> Query.new(name, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="51"> + <span class="hits">3</span> + + + + + <code class="ruby"> Query.new(name, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="52"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="52"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="53"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="53"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="54"> - - - <code class="ruby"> # Creates a Mutation object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="54"> + + + + + + <code class="ruby"> # Creates a Mutation object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="55"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="55"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="56"> - - - <code class="ruby"> # Can be used at a instance level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="56"> + + + + + + <code class="ruby"> # Can be used at a instance level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="57"> - <span class="hits">1</span> - - <code class="ruby"> def mutation(name = nil, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="57"> + <span class="hits">1</span> + + + + + <code class="ruby"> def mutation(name = nil, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="58"> - <span class="hits">2</span> - - <code class="ruby"> Mutation.new(name, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="58"> + <span class="hits">2</span> + + + + + <code class="ruby"> Mutation.new(name, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="59"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="59"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="60"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="60"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="61"> - - - <code class="ruby"> # Creates a Subscription object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="61"> + + + + + + <code class="ruby"> # Creates a Subscription object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="62"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="62"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="63"> - - - <code class="ruby"> # Can be used at a instance level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="63"> + + + + + + <code class="ruby"> # Can be used at a instance level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="64"> - <span class="hits">1</span> - - <code class="ruby"> def subscription(name = nil, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="64"> + <span class="hits">1</span> + + + + + <code class="ruby"> def subscription(name = nil, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="65"> - <span class="hits">2</span> - - <code class="ruby"> Subscription.new(name, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="65"> + <span class="hits">2</span> + + + + + <code class="ruby"> Subscription.new(name, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="66"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="66"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="67"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="67"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="68"> - - - <code class="ruby"> # Creates a Fragment object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="68"> + + + + + + <code class="ruby"> # Creates a Fragment object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="69"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="69"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="70"> - - - <code class="ruby"> # Can be used at an instance level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="70"> + + + + + + <code class="ruby"> # Can be used at an instance level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="71"> - <span class="hits">1</span> - - <code class="ruby"> def fragment(name, on, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="71"> + <span class="hits">1</span> + + + + + <code class="ruby"> def fragment(name, on, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="4" data-linenumber="72"> - <span class="hits">4</span> - - <code class="ruby"> Fragment.new(name, on, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="4" data-linenumber="72"> + <span class="hits">4</span> + + + + + <code class="ruby"> Fragment.new(name, on, &amp;block)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="73"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="73"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="74"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="74"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="75"> - - - <code class="ruby"> # Creates a EnumValue object</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="75"> + + + + + + <code class="ruby"> # Creates a EnumValue object</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="76"> - - - <code class="ruby"> #</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="76"> + + + + + + <code class="ruby"> #</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="77"> - - - <code class="ruby"> # Can be used at an instance level</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="77"> + + + + + + <code class="ruby"> # Can be used at an instance level</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="78"> - <span class="hits">1</span> - - <code class="ruby"> def enum(value)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="78"> + <span class="hits">1</span> + + + + + <code class="ruby"> def enum(value)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="79"> - <span class="hits">1</span> - - <code class="ruby"> EnumValue.new(value)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="79"> + <span class="hits">1</span> + + + + + <code class="ruby"> EnumValue.new(value)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="80"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="80"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="81"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="81"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="82"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="82"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="8599aaf43ba4686fbd793a6b54bdf898bbb28978"> + <div class="source_table" id="04dc7b6e37c697d5bcd0d293a340bcb712a228cb"> <div class="header"> <h3>lib/gqli/enum_value.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>7</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>7</b> relevant lines. <span class="green"><b>7</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"> # Wrapper for Enum values</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"> # Wrapper for Enum values</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby"> class EnumValue</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby"> class EnumValue</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="6"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :value</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="6"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :value</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="7"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="7"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="8"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(value)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="8"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(value)</code> + </li> + </div> - <li class="covered" data-hits="4" data-linenumber="9"> - <span class="hits">4</span> - - <code class="ruby"> @value = value</code> - </li> + <div> + <li class="covered" data-hits="4" data-linenumber="9"> + <span class="hits">4</span> + + + + + <code class="ruby"> @value = value</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="11"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="11"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"> # Serializes the enum value to string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"> # Serializes the enum value to string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="13"> - <span class="hits">1</span> - - <code class="ruby"> def to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="13"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_s</code> + </li> + </div> - <li class="covered" data-hits="5" data-linenumber="14"> - <span class="hits">5</span> - - <code class="ruby"> value.to_s</code> - </li> + <div> + <li class="covered" data-hits="5" data-linenumber="14"> + <span class="hits">5</span> + + + + + <code class="ruby"> value.to_s</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="049f7e831814eec17f9b96573767e0e1613dd427"> + <div class="source_table" id="584d61f90fec16213d3e17f63df0b8ffb9f1d206"> <div class="header"> <h3>lib/gqli/fragment.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>10</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>10</b> relevant lines. <span class="green"><b>10</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./base&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./base&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="4"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./node&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="4"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./node&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="5"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="5"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="6"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="6"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="7"> - - - <code class="ruby"> # Fragment wrapper</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="7"> + + + + + + <code class="ruby"> # Fragment wrapper</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="8"> - <span class="hits">1</span> - - <code class="ruby"> class Fragment &lt; Base</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="8"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Fragment &lt; Base</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="9"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :__on_type</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="9"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :__on_type</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="11"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(name, on, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="11"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(name, on, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="7" data-linenumber="12"> - <span class="hits">7</span> - - <code class="ruby"> super(name, 0, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="7" data-linenumber="12"> + <span class="hits">7</span> + + + + + <code class="ruby"> super(name, 0, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="7" data-linenumber="13"> - <span class="hits">7</span> - - <code class="ruby"> @__on_type = on</code> - </li> + <div> + <li class="covered" data-hits="7" data-linenumber="13"> + <span class="hits">7</span> + + + + + <code class="ruby"> @__on_type = on</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="17"> - <span class="hits">1</span> - - <code class="ruby"> def to_gql</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="17"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_gql</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="18"> - <span class="hits">2</span> - - <code class="ruby"> &lt;&lt;~GQL</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="18"> + <span class="hits">2</span> + + + + + <code class="ruby"> &lt;&lt;~GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="19"> - - - <code class="ruby"> fragment #{__name} on #{__on_type} {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> fragment #{__name} on #{__on_type} {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"> GQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"> GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="23"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="23"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="24"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="24"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="07f15b56d18102110d4b398de85375295500eab7"> + <div class="source_table" id="0b2b34f54c9a6a170e784204c50560f41c9ce44b"> <div class="header"> <h3>lib/gqli/introspection.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>63</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>63</b> relevant lines. <span class="green"><b>63</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./dsl&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./dsl&#39;</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="4"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./validation&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="4"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./validation&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="5"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="5"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="6"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="6"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="7"> - - - <code class="ruby"> # Introspection schema and validator</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="7"> + + + + + + <code class="ruby"> # Introspection schema and validator</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="8"> - <span class="hits">1</span> - - <code class="ruby"> class Introspection</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="8"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Introspection</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="9"> - <span class="hits">1</span> - - <code class="ruby"> extend DSL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="9"> + <span class="hits">1</span> + + + + + <code class="ruby"> extend DSL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="11"> - - - <code class="ruby"> # Specific type kind introspection fragment</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="11"> + + + + + + <code class="ruby"> # Specific type kind introspection fragment</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="12"> - <span class="hits">1</span> - - <code class="ruby"> TypeRef = fragment(&#39;TypeRef&#39;, &#39;__Type&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="12"> + <span class="hits">1</span> + + + + + <code class="ruby"> TypeRef = fragment(&#39;TypeRef&#39;, &#39;__Type&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="13"> - <span class="hits">1</span> - - <code class="ruby"> kind</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="13"> + <span class="hits">1</span> + + + + + <code class="ruby"> kind</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="14"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="14"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="15"> - <span class="hits">1</span> - - <code class="ruby"> ofType {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="15"> + <span class="hits">1</span> + + + + + <code class="ruby"> ofType {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="16"> - <span class="hits">1</span> - - <code class="ruby"> kind</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="16"> + <span class="hits">1</span> + + + + + <code class="ruby"> kind</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="17"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="17"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="18"> - <span class="hits">1</span> - - <code class="ruby"> ofType {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="18"> + <span class="hits">1</span> + + + + + <code class="ruby"> ofType {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="19"> - <span class="hits">1</span> - - <code class="ruby"> kind</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="19"> + <span class="hits">1</span> + + + + + <code class="ruby"> kind</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="20"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="20"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="21"> - <span class="hits">1</span> - - <code class="ruby"> ofType {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="21"> + <span class="hits">1</span> + + + + + <code class="ruby"> ofType {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="22"> - <span class="hits">1</span> - - <code class="ruby"> kind</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="22"> + <span class="hits">1</span> + + + + + <code class="ruby"> kind</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="23"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="24"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="24"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="26"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="28"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="28"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="29"> - - - <code class="ruby"> # Input value introspection fragment</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="29"> + + + + + + <code class="ruby"> # Input value introspection fragment</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="30"> - <span class="hits">1</span> - - <code class="ruby"> InputValue = fragment(&#39;InputValue&#39;, &#39;__InputValue&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="30"> + <span class="hits">1</span> + + + + + <code class="ruby"> InputValue = fragment(&#39;InputValue&#39;, &#39;__InputValue&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="31"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="31"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="32"> - <span class="hits">1</span> - - <code class="ruby"> description</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="32"> + <span class="hits">1</span> + + + + + <code class="ruby"> description</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="33"> - <span class="hits">2</span> - - <code class="ruby"> type { ___ TypeRef }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="33"> + <span class="hits">2</span> + + + + + <code class="ruby"> type { ___ TypeRef }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="34"> - <span class="hits">1</span> - - <code class="ruby"> defaultValue</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="34"> + <span class="hits">1</span> + + + + + <code class="ruby"> defaultValue</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="35"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="35"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="36"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="36"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="37"> - - - <code class="ruby"> # Type introspection fragment</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="37"> + + + + + + <code class="ruby"> # Type introspection fragment</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="38"> - <span class="hits">1</span> - - <code class="ruby"> FullType = fragment(&#39;FullType&#39;, &#39;__Type&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="38"> + <span class="hits">1</span> + + + + + <code class="ruby"> FullType = fragment(&#39;FullType&#39;, &#39;__Type&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="39"> - <span class="hits">1</span> - - <code class="ruby"> kind</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="39"> + <span class="hits">1</span> + + + + + <code class="ruby"> kind</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="40"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="40"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="41"> - <span class="hits">1</span> - - <code class="ruby"> description</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="41"> + <span class="hits">1</span> + + + + + <code class="ruby"> description</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="42"> - <span class="hits">1</span> - - <code class="ruby"> fields(includeDeprecated: true) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="42"> + <span class="hits">1</span> + + + + + <code class="ruby"> fields(includeDeprecated: true) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="43"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="43"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="44"> - <span class="hits">1</span> - - <code class="ruby"> description</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="44"> + <span class="hits">1</span> + + + + + <code class="ruby"> description</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="45"> - <span class="hits">2</span> - - <code class="ruby"> args { ___ InputValue }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="45"> + <span class="hits">2</span> + + + + + <code class="ruby"> args { ___ InputValue }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="46"> - <span class="hits">2</span> - - <code class="ruby"> type { ___ TypeRef }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="46"> + <span class="hits">2</span> + + + + + <code class="ruby"> type { ___ TypeRef }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="47"> - <span class="hits">1</span> - - <code class="ruby"> isDeprecated</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="47"> + <span class="hits">1</span> + + + + + <code class="ruby"> isDeprecated</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="48"> - <span class="hits">1</span> - - <code class="ruby"> deprecationReason</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="48"> + <span class="hits">1</span> + + + + + <code class="ruby"> deprecationReason</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="49"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="49"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="50"> - <span class="hits">2</span> - - <code class="ruby"> inputFields { ___ InputValue }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="50"> + <span class="hits">2</span> + + + + + <code class="ruby"> inputFields { ___ InputValue }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="51"> - <span class="hits">2</span> - - <code class="ruby"> interfaces { ___ TypeRef }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="51"> + <span class="hits">2</span> + + + + + <code class="ruby"> interfaces { ___ TypeRef }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="52"> - <span class="hits">1</span> - - <code class="ruby"> enumValues(includeDeprecated: true) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="52"> + <span class="hits">1</span> + + + + + <code class="ruby"> enumValues(includeDeprecated: true) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="53"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="53"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="54"> - <span class="hits">1</span> - - <code class="ruby"> description</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="54"> + <span class="hits">1</span> + + + + + <code class="ruby"> description</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="55"> - <span class="hits">1</span> - - <code class="ruby"> isDeprecated</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="55"> + <span class="hits">1</span> + + + + + <code class="ruby"> isDeprecated</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="56"> - <span class="hits">1</span> - - <code class="ruby"> deprecationReason</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="56"> + <span class="hits">1</span> + + + + + <code class="ruby"> deprecationReason</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="57"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="57"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="58"> - <span class="hits">2</span> - - <code class="ruby"> possibleTypes { ___ TypeRef }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="58"> + <span class="hits">2</span> + + + + + <code class="ruby"> possibleTypes { ___ TypeRef }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="59"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="59"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="60"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="60"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="61"> - - - <code class="ruby"> # Query for fetching the complete schema</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="61"> + + + + + + <code class="ruby"> # Query for fetching the complete schema</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="62"> - <span class="hits">1</span> - - <code class="ruby"> IntrospectionQuery = query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="62"> + <span class="hits">1</span> + + + + + <code class="ruby"> IntrospectionQuery = query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="63"> - <span class="hits">1</span> - - <code class="ruby"> __schema {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="63"> + <span class="hits">1</span> + + + + + <code class="ruby"> __schema {</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="64"> - <span class="hits">2</span> - - <code class="ruby"> queryType { name }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="64"> + <span class="hits">2</span> + + + + + <code class="ruby"> queryType { name }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="65"> - <span class="hits">2</span> - - <code class="ruby"> mutationType { name }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="65"> + <span class="hits">2</span> + + + + + <code class="ruby"> mutationType { name }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="66"> - <span class="hits">2</span> - - <code class="ruby"> subscriptionType { name }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="66"> + <span class="hits">2</span> + + + + + <code class="ruby"> subscriptionType { name }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="67"> - <span class="hits">2</span> - - <code class="ruby"> types { ___ FullType }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="67"> + <span class="hits">2</span> + + + + + <code class="ruby"> types { ___ FullType }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="68"> - <span class="hits">1</span> - - <code class="ruby"> directives {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="68"> + <span class="hits">1</span> + + + + + <code class="ruby"> directives {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="69"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="69"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="70"> - <span class="hits">1</span> - - <code class="ruby"> description</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="70"> + <span class="hits">1</span> + + + + + <code class="ruby"> description</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="71"> - <span class="hits">2</span> - - <code class="ruby"> args { ___ InputValue }</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="71"> + <span class="hits">2</span> + + + + + <code class="ruby"> args { ___ InputValue }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="72"> - <span class="hits">1</span> - - <code class="ruby"> locations</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="72"> + <span class="hits">1</span> + + + + + <code class="ruby"> locations</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="73"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="73"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="74"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="74"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="75"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="75"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="76"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="76"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="77"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :schema, :query_type, :mutation_type, :subscription_type, :types</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="77"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :schema, :query_type, :mutation_type, :subscription_type, :types</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="78"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="78"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="79"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(client)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="79"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(client)</code> + </li> + </div> - <li class="covered" data-hits="27" data-linenumber="80"> - <span class="hits">27</span> - - <code class="ruby"> @schema = client.execute!(IntrospectionQuery).data.__schema</code> - </li> + <div> + <li class="covered" data-hits="29" data-linenumber="80"> + <span class="hits">29</span> + + + + + <code class="ruby"> @schema = client.execute!(IntrospectionQuery).data.__schema</code> + </li> + </div> - <li class="covered" data-hits="27" data-linenumber="81"> - <span class="hits">27</span> - - <code class="ruby"> @query_type = schema.queryType</code> - </li> + <div> + <li class="covered" data-hits="29" data-linenumber="81"> + <span class="hits">29</span> + + + + + <code class="ruby"> @query_type = schema.queryType</code> + </li> + </div> - <li class="covered" data-hits="27" data-linenumber="82"> - <span class="hits">27</span> - - <code class="ruby"> @mutation_type = schema.mutationType</code> - </li> + <div> + <li class="covered" data-hits="29" data-linenumber="82"> + <span class="hits">29</span> + + + + + <code class="ruby"> @mutation_type = schema.mutationType</code> + </li> + </div> - <li class="covered" data-hits="27" data-linenumber="83"> - <span class="hits">27</span> - - <code class="ruby"> @subscription_type = schema.subscriptionType</code> - </li> + <div> + <li class="covered" data-hits="29" data-linenumber="83"> + <span class="hits">29</span> + + + + + <code class="ruby"> @subscription_type = schema.subscriptionType</code> + </li> + </div> - <li class="covered" data-hits="27" data-linenumber="84"> - <span class="hits">27</span> - - <code class="ruby"> @types = schema.types</code> - </li> + <div> + <li class="covered" data-hits="29" data-linenumber="84"> + <span class="hits">29</span> + + + + + <code class="ruby"> @types = schema.types</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="85"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="85"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="86"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="86"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="87"> - - - <code class="ruby"> # Returns the evaluated validation for a query</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="87"> + + + + + + <code class="ruby"> # Returns the evaluated validation for a query</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="88"> - <span class="hits">1</span> - - <code class="ruby"> def validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="88"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate(query)</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="89"> - <span class="hits">34</span> - - <code class="ruby"> Validation.new(self, query)</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="89"> + <span class="hits">34</span> + + + + + <code class="ruby"> Validation.new(self, query)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="90"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="90"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="91"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="91"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="92"> - - - <code class="ruby"> # Returns if the query is valid</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="92"> + + + + + + <code class="ruby"> # Returns if the query is valid</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="93"> - <span class="hits">1</span> - - <code class="ruby"> def valid?(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="93"> + <span class="hits">1</span> + + + + + <code class="ruby"> def valid?(query)</code> + </li> + </div> - <li class="covered" data-hits="10" data-linenumber="94"> - <span class="hits">10</span> - - <code class="ruby"> validate(query).valid?</code> - </li> + <div> + <li class="covered" data-hits="10" data-linenumber="94"> + <span class="hits">10</span> + + + + + <code class="ruby"> validate(query).valid?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="95"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="95"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="96"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="96"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="97"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="97"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="c40220bd28640b7a696c273e3498791096d73ce9"> + <div class="source_table" id="9d47f4d3bd2563fc0eb2e767aa3817d4cdbad999"> <div class="header"> <h3>lib/gqli/mutation.rb</h3> - <h4><span class="yellow">88.89 %</span> covered</h4> - <div> - <b>9</b> relevant lines. + <h4> + <span class="yellow"> + 88.89% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>9</b> relevant lines. <span class="green"><b>8</b> lines covered</span> and <span class="red"><b>1</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"> # Mutation node</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"> # Mutation node</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby"> class Mutation &lt; Base</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Mutation &lt; Base</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> def to_gql</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_gql</code> + </li> + </div> - <li class="covered" data-hits="8" data-linenumber="8"> - <span class="hits">8</span> - - <code class="ruby"> result = &lt;&lt;~GQL</code> - </li> + <div> + <li class="covered" data-hits="8" data-linenumber="8"> + <span class="hits">8</span> + + + + + <code class="ruby"> result = &lt;&lt;~GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="9"> - - - <code class="ruby"> mutation #{__name ? __name + &#39; &#39; : &#39;&#39;}{</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="9"> + + + + + + <code class="ruby"> mutation #{__name ? __name + &#39; &#39; : &#39;&#39;}{</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="11"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="11"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"> GQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"> GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="8" data-linenumber="14"> - <span class="hits">8</span> - - <code class="ruby"> result.lstrip</code> - </li> + <div> + <li class="covered" data-hits="8" data-linenumber="14"> + <span class="hits">8</span> + + + + + <code class="ruby"> result.lstrip</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby"> # Delegates itself to the client to be executed</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby"> # Delegates itself to the client to be executed</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="18"> - <span class="hits">1</span> - - <code class="ruby"> def __execute(client)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="18"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __execute(client)</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="19"> - - - <code class="ruby"> client.execute(self)</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="19"> + + + + + + <code class="ruby"> client.execute(self)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="23"> - <span class="hits">1</span> - - <code class="ruby"> def to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_s</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="24"> - <span class="hits">2</span> - - <code class="ruby"> to_gql</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="24"> + <span class="hits">2</span> + + + + + <code class="ruby"> to_gql</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="26"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="827311add0f30734381233709eff6f2feef29107"> + <div class="source_table" id="0da1c99f84cc5020bdcf5baff030e67c2dc39eb3"> <div class="header"> <h3>lib/gqli/node.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>31</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>31</b> relevant lines. <span class="green"><b>31</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./base&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./base&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Node wrapper</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Node wrapper</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> class Node &lt; Base</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Node &lt; Base</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="8"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :__params</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="8"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :__params</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="9"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="9"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="10"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(name, params = {}, depth = 1, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="10"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(name, params = {}, depth = 1, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="346" data-linenumber="11"> - <span class="hits">346</span> - - <code class="ruby"> super(name, depth, &amp;block)</code> - </li> + <div> + <li class="covered" data-hits="346" data-linenumber="11"> + <span class="hits">346</span> + + + + + <code class="ruby"> super(name, depth, &amp;block)</code> + </li> + </div> - <li class="covered" data-hits="346" data-linenumber="12"> - <span class="hits">346</span> - - <code class="ruby"> @__params = params</code> - </li> + <div> + <li class="covered" data-hits="346" data-linenumber="12"> + <span class="hits">346</span> + + + + + <code class="ruby"> @__params = params</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="16"> - <span class="hits">1</span> - - <code class="ruby"> def to_gql</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="16"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_gql</code> + </li> + </div> - <li class="covered" data-hits="3020" data-linenumber="17"> - <span class="hits">3020</span> - - <code class="ruby"> result = &#39; &#39; * __depth + __name</code> - </li> + <div> + <li class="covered" data-hits="3238" data-linenumber="17"> + <span class="hits">3238</span> + + + + + <code class="ruby"> result = &#39; &#39; * __depth + __name</code> + </li> + </div> - <li class="covered" data-hits="3020" data-linenumber="18"> - <span class="hits">3020</span> - - <code class="ruby"> result += __params_to_s(__params, true) unless __params.empty?</code> - </li> + <div> + <li class="covered" data-hits="3238" data-linenumber="18"> + <span class="hits">3238</span> + + + + + <code class="ruby"> result += __params_to_s(__params, true) unless __params.empty?</code> + </li> + </div> - <li class="covered" data-hits="3020" data-linenumber="19"> - <span class="hits">3020</span> - - <code class="ruby"> unless __nodes.empty?</code> - </li> + <div> + <li class="covered" data-hits="3238" data-linenumber="19"> + <span class="hits">3238</span> + + + + + <code class="ruby"> unless __nodes.empty?</code> + </li> + </div> - <li class="covered" data-hits="976" data-linenumber="20"> - <span class="hits">976</span> - - <code class="ruby"> result += &quot; {\n&quot;</code> - </li> + <div> + <li class="covered" data-hits="1046" data-linenumber="20"> + <span class="hits">1046</span> + + + + + <code class="ruby"> result += &quot; {\n&quot;</code> + </li> + </div> - <li class="covered" data-hits="976" data-linenumber="21"> - <span class="hits">976</span> - - <code class="ruby"> result += __nodes.map(&amp;:to_gql).join(&quot;\n&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1046" data-linenumber="21"> + <span class="hits">1046</span> + + + + + <code class="ruby"> result += __nodes.map(&amp;:to_gql).join(&quot;\n&quot;)</code> + </li> + </div> - <li class="covered" data-hits="976" data-linenumber="22"> - <span class="hits">976</span> - - <code class="ruby"> result += &quot;\n#{&#39; &#39; * __depth}}&quot;</code> - </li> + <div> + <li class="covered" data-hits="1046" data-linenumber="22"> + <span class="hits">1046</span> + + + + + <code class="ruby"> result += &quot;\n#{&#39; &#39; * __depth}}&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="23"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="23"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="24"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="24"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="3020" data-linenumber="25"> - <span class="hits">3020</span> - - <code class="ruby"> result</code> - </li> + <div> + <li class="covered" data-hits="3238" data-linenumber="25"> + <span class="hits">3238</span> + + + + + <code class="ruby"> result</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="26"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="28"> - <span class="hits">1</span> - - <code class="ruby"> private</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="28"> + <span class="hits">1</span> + + + + + <code class="ruby"> private</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="29"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="29"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="30"> - <span class="hits">1</span> - - <code class="ruby"> def __directive?(params)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="30"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __directive?(params)</code> + </li> + </div> - <li class="covered" data-hits="79" data-linenumber="31"> - <span class="hits">79</span> - - <code class="ruby"> params.size == 1 &amp;&amp; params.keys.first.to_s.start_with?(&#39;@&#39;)</code> - </li> + <div> + <li class="covered" data-hits="83" data-linenumber="31"> + <span class="hits">83</span> + + + + + <code class="ruby"> params.size == 1 &amp;&amp; params.keys.first.to_s.start_with?(&#39;@&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="32"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="32"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="33"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="33"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="34"> - <span class="hits">1</span> - - <code class="ruby"> def __directive(params)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="34"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __directive(params)</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="35"> - <span class="hits">2</span> - - <code class="ruby"> params.first.tap do |directive, directive_params|</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="35"> + <span class="hits">2</span> + + + + + <code class="ruby"> params.first.tap do |directive, directive_params|</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="36"> - <span class="hits">2</span> - - <code class="ruby"> return &quot; #{directive}#{__params_to_s(directive_params, true)}&quot;</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="36"> + <span class="hits">2</span> + + + + + <code class="ruby"> return &quot; #{directive}#{__params_to_s(directive_params, true)}&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="37"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="37"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="38"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="38"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="39"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="39"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="40"> - <span class="hits">1</span> - - <code class="ruby"> def __params_to_s(params, initial = false)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="40"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __params_to_s(params, initial = false)</code> + </li> + </div> - <li class="covered" data-hits="154" data-linenumber="41"> - <span class="hits">154</span> - - <code class="ruby"> case params</code> - </li> + <div> + <li class="covered" data-hits="162" data-linenumber="41"> + <span class="hits">162</span> + + + + + <code class="ruby"> case params</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="42"> - - - <code class="ruby"> when ::Hash</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="42"> + + + + + + <code class="ruby"> when ::Hash</code> + </li> + </div> - <li class="covered" data-hits="79" data-linenumber="43"> - <span class="hits">79</span> - - <code class="ruby"> return __directive(params) if __directive?(params)</code> - </li> + <div> + <li class="covered" data-hits="83" data-linenumber="43"> + <span class="hits">83</span> + + + + + <code class="ruby"> return __directive(params) if __directive?(params)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="44"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="44"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="77" data-linenumber="45"> - <span class="hits">77</span> - - <code class="ruby"> result = params.map do |k, v|</code> - </li> + <div> + <li class="covered" data-hits="81" data-linenumber="45"> + <span class="hits">81</span> + + + + + <code class="ruby"> result = params.map do |k, v|</code> + </li> + </div> - <li class="covered" data-hits="78" data-linenumber="46"> - <span class="hits">78</span> - - <code class="ruby"> &quot;#{k}: #{__params_to_s(v)}&quot;</code> - </li> + <div> + <li class="covered" data-hits="82" data-linenumber="46"> + <span class="hits">82</span> + + + + + <code class="ruby"> &quot;#{k}: #{__params_to_s(v)}&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="47"> - - - <code class="ruby"> end.join(&#39;, &#39;)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="47"> + + + + + + <code class="ruby"> end.join(&#39;, &#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="48"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="48"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="77" data-linenumber="49"> - <span class="hits">77</span> - - <code class="ruby"> return &quot;(#{result})&quot; if initial</code> - </li> + <div> + <li class="covered" data-hits="81" data-linenumber="49"> + <span class="hits">81</span> + + + + + <code class="ruby"> return &quot;(#{result})&quot; if initial</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="50"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="50"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="5" data-linenumber="51"> - <span class="hits">5</span> - - <code class="ruby"> &quot;{#{result}}&quot;</code> - </li> + <div> + <li class="covered" data-hits="5" data-linenumber="51"> + <span class="hits">5</span> + + + + + <code class="ruby"> &quot;{#{result}}&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="52"> - - - <code class="ruby"> when ::Array</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="52"> + + + + + + <code class="ruby"> when ::Array</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="53"> - <span class="hits">3</span> - - <code class="ruby"> &quot;[#{params.map { |p| __params_to_s(p) }.join(&#39;, &#39;)}]&quot;</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="53"> + <span class="hits">3</span> + + + + + <code class="ruby"> &quot;[#{params.map { |p| __params_to_s(p) }.join(&#39;, &#39;)}]&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="54"> - - - <code class="ruby"> when ::String</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="54"> + + + + + + <code class="ruby"> when ::String</code> + </li> + </div> - <li class="covered" data-hits="12" data-linenumber="55"> - <span class="hits">12</span> - - <code class="ruby"> &quot;\&quot;#{params}\&quot;&quot;</code> - </li> + <div> + <li class="covered" data-hits="12" data-linenumber="55"> + <span class="hits">12</span> + + + + + <code class="ruby"> &quot;\&quot;#{params}\&quot;&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="56"> - - - <code class="ruby"> else</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="56"> + + + + + + <code class="ruby"> else</code> + </li> + </div> - <li class="covered" data-hits="62" data-linenumber="57"> - <span class="hits">62</span> - - <code class="ruby"> params.to_s</code> - </li> + <div> + <li class="covered" data-hits="66" data-linenumber="57"> + <span class="hits">66</span> + + + + + <code class="ruby"> params.to_s</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="58"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="58"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="59"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="59"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="60"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="60"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="61"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="61"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="add3b96d53406d04d830c517b925e60e5592500d"> + <div class="source_table" id="8f46cdcc46a82391ddda9f583874f7fa2be506c9"> <div class="header"> <h3>lib/gqli/query.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>10</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>10</b> relevant lines. <span class="green"><b>10</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require_relative &#39;./base&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require_relative &#39;./base&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Query node</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Query node</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> class Query &lt; Base</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Query &lt; Base</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="8"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="8"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="9"> - <span class="hits">1</span> - - <code class="ruby"> def to_gql</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="9"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_gql</code> + </li> + </div> - <li class="covered" data-hits="46" data-linenumber="10"> - <span class="hits">46</span> - - <code class="ruby"> result = &lt;&lt;~GQL</code> - </li> + <div> + <li class="covered" data-hits="48" data-linenumber="10"> + <span class="hits">48</span> + + + + + <code class="ruby"> result = &lt;&lt;~GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="11"> - - - <code class="ruby"> query #{__name ? __name + &#39; &#39; : &#39;&#39;}{</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="11"> + + + + + + <code class="ruby"> query #{__name ? __name + &#39; &#39; : &#39;&#39;}{</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"> GQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="46" data-linenumber="16"> - <span class="hits">46</span> - - <code class="ruby"> result.lstrip</code> - </li> + <div> + <li class="covered" data-hits="48" data-linenumber="16"> + <span class="hits">48</span> + + + + + <code class="ruby"> result.lstrip</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="18"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="18"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="19"> - - - <code class="ruby"> # Delegates itself to the client to be executed</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> # Delegates itself to the client to be executed</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="20"> - <span class="hits">1</span> - - <code class="ruby"> def __execute(client)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="20"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __execute(client)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="21"> - <span class="hits">1</span> - - <code class="ruby"> client.execute(self)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="21"> + <span class="hits">1</span> + + + + + <code class="ruby"> client.execute(self)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="23"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="23"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="24"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="24"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="25"> - <span class="hits">1</span> - - <code class="ruby"> def to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="25"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_s</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="26"> - <span class="hits">1</span> - - <code class="ruby"> to_gql</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="26"> + <span class="hits">1</span> + + + + + <code class="ruby"> to_gql</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="28"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="28"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="29"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="29"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="fc631e4d066aa11a78ad288ef5341c2bc5e2fd9d"> + <div class="source_table" id="6e2638357044f7c15c316f4764b57f85ebf565fe"> <div class="header"> <h3>lib/gqli/response.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>7</b> relevant lines. - <span class="green"><b>7</b> lines covered</span> and + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>13</b> relevant lines. + <span class="green"><b>13</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">require &#39;hashie/mash&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">require &#39;hashie/mash&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Response object wrapper</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Response object wrapper</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> class Response</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Response</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="8"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :data, :query</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="8"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :data, :errors, :query</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="9"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="9"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="10"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(data, query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="10"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(data, errors, query)</code> + </li> + </div> - <li class="covered" data-hits="29" data-linenumber="11"> - <span class="hits">29</span> - - <code class="ruby"> @data = Hashie::Mash.new(data)</code> - </li> + <div> + <li class="covered" data-hits="36" data-linenumber="11"> + <span class="hits">36</span> + + + + + <code class="ruby"> @data = Hashie::Mash.new(data)</code> + </li> + </div> - <li class="covered" data-hits="29" data-linenumber="12"> - <span class="hits">29</span> - - <code class="ruby"> @query = query</code> - </li> + <div> + <li class="covered" data-hits="36" data-linenumber="12"> + <span class="hits">36</span> + + + + + <code class="ruby"> @errors = parse_errors(errors)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="covered" data-hits="36" data-linenumber="13"> + <span class="hits">36</span> + + + + + <code class="ruby"> @query = query</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"></code> + </li> + </div> + <div> + <li class="covered" data-hits="1" data-linenumber="16"> + <span class="hits">1</span> + + + + + <code class="ruby"> private</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="18"> + + + + + + <code class="ruby"> # Accepts Hash or Array of errors and converts them to Hashie::Mash instances.</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> # Recursively calls #parse_errors with items if array.</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> # Returns nil if nil is passed.</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="21"> + <span class="hits">1</span> + + + + + <code class="ruby"> def parse_errors(errors)</code> + </li> + </div> + + <div> + <li class="covered" data-hits="37" data-linenumber="22"> + <span class="hits">37</span> + + + + + <code class="ruby"> return unless errors</code> + </li> + </div> + + <div> + <li class="covered" data-hits="4" data-linenumber="23"> + <span class="hits">4</span> + + + + + <code class="ruby"> return errors.map { |e| parse_errors(e) } if errors.is_a?(Array)</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="24"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="2" data-linenumber="25"> + <span class="hits">2</span> + + + + + <code class="ruby"> Hashie::Mash.new(errors)</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="28"> + + + + + + <code class="ruby">end</code> + </li> + </div> + </ol> </pre> </div> - <div class="source_table" id="3b534dd15131bb6d8770662787bf8f8099b5cf25"> + <div class="source_table" id="143ace8fdfd9be5e5c829c7d15a073c59baa79de"> <div class="header"> <h3>lib/gqli/subscription.rb</h3> - <h4><span class="yellow">88.89 %</span> covered</h4> - <div> - <b>9</b> relevant lines. + <h4> + <span class="yellow"> + 88.89% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>9</b> relevant lines. <span class="green"><b>8</b> lines covered</span> and <span class="red"><b>1</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"> # Subscription node</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"> # Subscription node</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby"> class Subscription &lt; Base</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Subscription &lt; Base</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby"> def to_gql</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_gql</code> + </li> + </div> - <li class="covered" data-hits="8" data-linenumber="8"> - <span class="hits">8</span> - - <code class="ruby"> result = &lt;&lt;~GQL</code> - </li> + <div> + <li class="covered" data-hits="8" data-linenumber="8"> + <span class="hits">8</span> + + + + + <code class="ruby"> result = &lt;&lt;~GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="9"> - - - <code class="ruby"> subscription #{__name ? __name + &#39; &#39; : &#39;&#39;}{</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="9"> + + + + + + <code class="ruby"> subscription #{__name ? __name + &#39; &#39; : &#39;&#39;}{</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"> #{__nodes.map(&amp;:to_gql).join(&quot;\n&quot;)}</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="11"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="11"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"> GQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"> GQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="13"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="8" data-linenumber="14"> - <span class="hits">8</span> - - <code class="ruby"> result.lstrip</code> - </li> + <div> + <li class="covered" data-hits="8" data-linenumber="14"> + <span class="hits">8</span> + + + + + <code class="ruby"> result.lstrip</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="17"> - - - <code class="ruby"> # Delegates itself to the client to be executed</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="17"> + + + + + + <code class="ruby"> # Delegates itself to the client to be executed</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="18"> - <span class="hits">1</span> - - <code class="ruby"> def __execute(client)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="18"> + <span class="hits">1</span> + + + + + <code class="ruby"> def __execute(client)</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="19"> - - - <code class="ruby"> client.execute(self)</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="19"> + + + + + + <code class="ruby"> client.execute(self)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"> # Serializes to a GraphQL string</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"> # Serializes to a GraphQL string</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="23"> - <span class="hits">1</span> - - <code class="ruby"> def to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> def to_s</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="24"> - <span class="hits">2</span> - - <code class="ruby"> to_gql</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="24"> + <span class="hits">2</span> + + + + + <code class="ruby"> to_gql</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="26"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="26"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="4c31f7a77052c02790c8c5c06fd2085c7022ac23"> + <div class="source_table" id="571904c8fd99b4016074bfd29a16f5441a379a50"> <div class="header"> <h3>lib/gqli/validation.rb</h3> - <h4><span class="green">93.27 %</span> covered</h4> - <div> - <b>104</b> relevant lines. + <h4> + <span class="green"> + 93.27% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>104</b> relevant lines. <span class="green"><b>97</b> lines covered</span> and <span class="red"><b>7</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="never" data-hits="" data-linenumber="1"> - - - <code class="ruby"># frozen_string_literal: true</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="1"> + + + + + + <code class="ruby"># frozen_string_literal: true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">module GQLi</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">module GQLi</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="4"> - - - <code class="ruby"> # Validations</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="4"> + + + + + + <code class="ruby"> # Validations</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby"> class Validation</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby"> class Validation</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="6"> - <span class="hits">1</span> - - <code class="ruby"> attr_reader :schema, :root, :errors</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="6"> + <span class="hits">1</span> + + + + + <code class="ruby"> attr_reader :schema, :root, :errors</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="7"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="7"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="8"> - <span class="hits">1</span> - - <code class="ruby"> def initialize(schema, root)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="8"> + <span class="hits">1</span> + + + + + <code class="ruby"> def initialize(schema, root)</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="9"> - <span class="hits">34</span> - - <code class="ruby"> @schema = schema</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="9"> + <span class="hits">34</span> + + + + + <code class="ruby"> @schema = schema</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="10"> - <span class="hits">34</span> - - <code class="ruby"> @root = root</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="10"> + <span class="hits">34</span> + + + + + <code class="ruby"> @root = root</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="11"> - <span class="hits">34</span> - - <code class="ruby"> @errors = []</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="11"> + <span class="hits">34</span> + + + + + <code class="ruby"> @errors = []</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="13"> - <span class="hits">34</span> - - <code class="ruby"> validate</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="13"> + <span class="hits">34</span> + + + + + <code class="ruby"> validate</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"> # Returns wether the query is valid or not</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"> # Returns wether the query is valid or not</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="17"> - <span class="hits">1</span> - - <code class="ruby"> def valid?</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="17"> + <span class="hits">1</span> + + + + + <code class="ruby"> def valid?</code> + </li> + </div> - <li class="covered" data-hits="68" data-linenumber="18"> - <span class="hits">68</span> - - <code class="ruby"> errors.empty?</code> - </li> + <div> + <li class="covered" data-hits="68" data-linenumber="18"> + <span class="hits">68</span> + + + + + <code class="ruby"> errors.empty?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="19"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="21"> - <span class="hits">1</span> - - <code class="ruby"> protected</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="21"> + <span class="hits">1</span> + + + + + <code class="ruby"> protected</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="23"> - <span class="hits">1</span> - - <code class="ruby"> def validate</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="24"> - <span class="hits">34</span> - - <code class="ruby"> @errors = []</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="24"> + <span class="hits">34</span> + + + + + <code class="ruby"> @errors = []</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="26"> - <span class="hits">34</span> - - <code class="ruby"> type_name = root.class.name.split(&#39;::&#39;).last</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="26"> + <span class="hits">34</span> + + + + + <code class="ruby"> type_name = root.class.name.split(&#39;::&#39;).last</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="27"> - <span class="hits">34</span> - - <code class="ruby"> validate_type(type_name)</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="27"> + <span class="hits">34</span> + + + + + <code class="ruby"> validate_type(type_name)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="28"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="28"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="29"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="29"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="30"> - <span class="hits">1</span> - - <code class="ruby"> private</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="30"> + <span class="hits">1</span> + + + + + <code class="ruby"> private</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="31"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="31"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="32"> - <span class="hits">1</span> - - <code class="ruby"> def validate_type(type)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="32"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate_type(type)</code> + </li> + </div> - <li class="covered" data-hits="1295" data-linenumber="33"> - <span class="hits">1295</span> - - <code class="ruby"> root_type = types.find { |t| t.name.casecmp(type).zero? }</code> - </li> + <div> + <li class="covered" data-hits="1295" data-linenumber="33"> + <span class="hits">1295</span> + + + + + <code class="ruby"> root_type = types.find { |t| t.name.casecmp(type).zero? }</code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="34"> - <span class="hits">34</span> - - <code class="ruby"> root.__nodes.each do |node|</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="34"> + <span class="hits">34</span> + + + + + <code class="ruby"> root.__nodes.each do |node|</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="35"> - - - <code class="ruby"> begin</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="35"> + + + + + + <code class="ruby"> begin</code> + </li> + </div> - <li class="covered" data-hits="35" data-linenumber="36"> - <span class="hits">35</span> - - <code class="ruby"> validate_node(root_type, node)</code> - </li> + <div> + <li class="covered" data-hits="35" data-linenumber="36"> + <span class="hits">35</span> + + + + + <code class="ruby"> validate_node(root_type, node)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="37"> - - - <code class="ruby"> rescue StandardError =&gt; e</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="37"> + + + + + + <code class="ruby"> rescue StandardError =&gt; e</code> + </li> + </div> - <li class="covered" data-hits="13" data-linenumber="38"> - <span class="hits">13</span> - - <code class="ruby"> errors &lt;&lt; e</code> - </li> + <div> + <li class="covered" data-hits="13" data-linenumber="38"> + <span class="hits">13</span> + + + + + <code class="ruby"> errors &lt;&lt; e</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="39"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="39"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="40"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="40"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="41"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="41"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="34" data-linenumber="42"> - <span class="hits">34</span> - - <code class="ruby"> valid?</code> - </li> + <div> + <li class="covered" data-hits="34" data-linenumber="42"> + <span class="hits">34</span> + + + + + <code class="ruby"> valid?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="43"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="43"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="44"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="44"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="45"> - <span class="hits">1</span> - - <code class="ruby"> def remove_alias(name)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="45"> + <span class="hits">1</span> + + + + + <code class="ruby"> def remove_alias(name)</code> + </li> + </div> - <li class="covered" data-hits="94" data-linenumber="46"> - <span class="hits">94</span> - - <code class="ruby"> return name unless name.include?(&#39;:&#39;)</code> - </li> + <div> + <li class="covered" data-hits="94" data-linenumber="46"> + <span class="hits">94</span> + + + + + <code class="ruby"> return name unless name.include?(&#39;:&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="47"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="47"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="48"> - <span class="hits">2</span> - - <code class="ruby"> name.split(&#39;:&#39;)[1].strip</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="48"> + <span class="hits">2</span> + + + + + <code class="ruby"> name.split(&#39;:&#39;)[1].strip</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="49"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="49"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="50"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="50"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="51"> - <span class="hits">1</span> - - <code class="ruby"> def types</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="51"> + <span class="hits">1</span> + + + + + <code class="ruby"> def types</code> + </li> + </div> - <li class="covered" data-hits="164" data-linenumber="52"> - <span class="hits">164</span> - - <code class="ruby"> schema.types</code> - </li> + <div> + <li class="covered" data-hits="164" data-linenumber="52"> + <span class="hits">164</span> + + + + + <code class="ruby"> schema.types</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="53"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="53"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="54"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="54"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="55"> - <span class="hits">1</span> - - <code class="ruby"> def validate_node(parent_type, node)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="55"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate_node(parent_type, node)</code> + </li> + </div> - <li class="covered" data-hits="101" data-linenumber="56"> - <span class="hits">101</span> - - <code class="ruby"> validate_directives(node)</code> - </li> + <div> + <li class="covered" data-hits="101" data-linenumber="56"> + <span class="hits">101</span> + + + + + <code class="ruby"> validate_directives(node)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="57"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="57"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="98" data-linenumber="58"> - <span class="hits">98</span> - - <code class="ruby"> return valid_match_node?(parent_type, node) if node.__name.start_with?(&#39;... on&#39;)</code> - </li> + <div> + <li class="covered" data-hits="98" data-linenumber="58"> + <span class="hits">98</span> + + + + + <code class="ruby"> return valid_match_node?(parent_type, node) if node.__name.start_with?(&#39;... on&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="59"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="59"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="94" data-linenumber="60"> - <span class="hits">94</span> - - <code class="ruby"> node_name = remove_alias(node.__name)</code> - </li> + <div> + <li class="covered" data-hits="94" data-linenumber="60"> + <span class="hits">94</span> + + + + + <code class="ruby"> node_name = remove_alias(node.__name)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="61"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="61"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="556" data-linenumber="62"> - <span class="hits">556</span> - - <code class="ruby"> node_type = parent_type.fetch(&#39;fields&#39;, []).find { |f| f.name == node_name }</code> - </li> + <div> + <li class="covered" data-hits="556" data-linenumber="62"> + <span class="hits">556</span> + + + + + <code class="ruby"> node_type = parent_type.fetch(&#39;fields&#39;, []).find { |f| f.name == node_name }</code> + </li> + </div> - <li class="covered" data-hits="94" data-linenumber="63"> - <span class="hits">94</span> - - <code class="ruby"> fail &quot;Node type not found for &#39;#{node_name}&#39;&quot; if node_type.nil?</code> - </li> + <div> + <li class="covered" data-hits="94" data-linenumber="63"> + <span class="hits">94</span> + + + + + <code class="ruby"> fail &quot;Node type not found for &#39;#{node_name}&#39;&quot; if node_type.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="64"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="64"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="90" data-linenumber="65"> - <span class="hits">90</span> - - <code class="ruby"> validate_params(node_type, node)</code> - </li> + <div> + <li class="covered" data-hits="90" data-linenumber="65"> + <span class="hits">90</span> + + + + + <code class="ruby"> validate_params(node_type, node)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="66"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="66"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="90" data-linenumber="67"> - <span class="hits">90</span> - - <code class="ruby"> resolved_node_type = type_for(node_type)</code> - </li> + <div> + <li class="covered" data-hits="90" data-linenumber="67"> + <span class="hits">90</span> + + + + + <code class="ruby"> resolved_node_type = type_for(node_type)</code> + </li> + </div> - <li class="covered" data-hits="90" data-linenumber="68"> - <span class="hits">90</span> - - <code class="ruby"> fail &quot;Node type not found for &#39;#{node_name}&#39;&quot; if resolved_node_type.nil?</code> - </li> + <div> + <li class="covered" data-hits="90" data-linenumber="68"> + <span class="hits">90</span> + + + + + <code class="ruby"> fail &quot;Node type not found for &#39;#{node_name}&#39;&quot; if resolved_node_type.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="69"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="69"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="90" data-linenumber="70"> - <span class="hits">90</span> - - <code class="ruby"> validate_nesting_node(resolved_node_type, node)</code> - </li> + <div> + <li class="covered" data-hits="90" data-linenumber="70"> + <span class="hits">90</span> + + + + + <code class="ruby"> validate_nesting_node(resolved_node_type, node)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="71"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="71"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="152" data-linenumber="72"> - <span class="hits">152</span> - - <code class="ruby"> node.__nodes.each { |n| validate_node(resolved_node_type, n) }</code> - </li> + <div> + <li class="covered" data-hits="152" data-linenumber="72"> + <span class="hits">152</span> + + + + + <code class="ruby"> node.__nodes.each { |n| validate_node(resolved_node_type, n) }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="73"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="73"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="74"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="74"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="75"> - <span class="hits">1</span> - - <code class="ruby"> def valid_match_node?(parent_type, node)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="75"> + <span class="hits">1</span> + + + + + <code class="ruby"> def valid_match_node?(parent_type, node)</code> + </li> + </div> - <li class="covered" data-hits="14" data-linenumber="76"> - <span class="hits">14</span> - - <code class="ruby"> return if parent_type.fetch(&#39;possibleTypes&#39;, []).find { |t| t.name == node.__name.gsub(&#39;... on &#39;, &#39;&#39;) }</code> - </li> + <div> + <li class="covered" data-hits="14" data-linenumber="76"> + <span class="hits">14</span> + + + + + <code class="ruby"> return if parent_type.fetch(&#39;possibleTypes&#39;, []).find { |t| t.name == node.__name.gsub(&#39;... on &#39;, &#39;&#39;) }</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="77"> - <span class="hits">2</span> - - <code class="ruby"> fail &quot;Match type &#39;#{node.__name.gsub(&#39;... on &#39;, &#39;&#39;)}&#39; invalid&quot;</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="77"> + <span class="hits">2</span> + + + + + <code class="ruby"> fail &quot;Match type &#39;#{node.__name.gsub(&#39;... on &#39;, &#39;&#39;)}&#39; invalid&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="78"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="78"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="79"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="79"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="80"> - <span class="hits">1</span> - - <code class="ruby"> def validate_directives(node)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="80"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate_directives(node)</code> + </li> + </div> - <li class="covered" data-hits="101" data-linenumber="81"> - <span class="hits">101</span> - - <code class="ruby"> return unless node.__params.size &gt;= 1</code> - </li> + <div> + <li class="covered" data-hits="101" data-linenumber="81"> + <span class="hits">101</span> + + + + + <code class="ruby"> return unless node.__params.size &gt;= 1</code> + </li> + </div> - <li class="covered" data-hits="24" data-linenumber="82"> - <span class="hits">24</span> - - <code class="ruby"> node.__params.first.tap do |k, v|</code> - </li> + <div> + <li class="covered" data-hits="24" data-linenumber="82"> + <span class="hits">24</span> + + + + + <code class="ruby"> node.__params.first.tap do |k, v|</code> + </li> + </div> - <li class="covered" data-hits="24" data-linenumber="83"> - <span class="hits">24</span> - - <code class="ruby"> break unless k.to_s.start_with?(&#39;@&#39;)</code> - </li> + <div> + <li class="covered" data-hits="24" data-linenumber="83"> + <span class="hits">24</span> + + + + + <code class="ruby"> break unless k.to_s.start_with?(&#39;@&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="84"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="84"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="7" data-linenumber="85"> - <span class="hits">7</span> - - <code class="ruby"> fail &quot;Directive unknown &#39;#{k}&#39;&quot; unless %i[@include @skip].include?(k)</code> - </li> + <div> + <li class="covered" data-hits="7" data-linenumber="85"> + <span class="hits">7</span> + + + + + <code class="ruby"> fail &quot;Directive unknown &#39;#{k}&#39;&quot; unless %i[@include @skip].include?(k)</code> + </li> + </div> - <li class="covered" data-hits="6" data-linenumber="86"> - <span class="hits">6</span> - - <code class="ruby"> fail &quot;Missing arguments for directive &#39;#{k}&#39;&quot; if v.nil? || !v.is_a?(::Hash) || v.empty?</code> - </li> + <div> + <li class="covered" data-hits="6" data-linenumber="86"> + <span class="hits">6</span> + + + + + <code class="ruby"> fail &quot;Missing arguments for directive &#39;#{k}&#39;&quot; if v.nil? || !v.is_a?(::Hash) || v.empty?</code> + </li> + </div> - <li class="covered" data-hits="4" data-linenumber="87"> - <span class="hits">4</span> - - <code class="ruby"> v.each do |arg, value|</code> - </li> + <div> + <li class="covered" data-hits="4" data-linenumber="87"> + <span class="hits">4</span> + + + + + <code class="ruby"> v.each do |arg, value|</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="88"> - - - <code class="ruby"> begin</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="88"> + + + + + + <code class="ruby"> begin</code> + </li> + </div> - <li class="covered" data-hits="5" data-linenumber="89"> - <span class="hits">5</span> - - <code class="ruby"> fail &quot;Invalid argument &#39;#{arg}&#39; for directive &#39;#{k}&#39;&quot; if arg.to_s != &#39;if&#39;</code> - </li> + <div> + <li class="covered" data-hits="5" data-linenumber="89"> + <span class="hits">5</span> + + + + + <code class="ruby"> fail &quot;Invalid argument &#39;#{arg}&#39; for directive &#39;#{k}&#39;&quot; if arg.to_s != &#39;if&#39;</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="90"> - <span class="hits">3</span> - - <code class="ruby"> fail &quot;Invalid value for &#39;if`, must be a boolean&quot; if value != !!value</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="90"> + <span class="hits">3</span> + + + + + <code class="ruby"> fail &quot;Invalid value for &#39;if`, must be a boolean&quot; if value != !!value</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="91"> - - - <code class="ruby"> rescue StandardError =&gt; e</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="91"> + + + + + + <code class="ruby"> rescue StandardError =&gt; e</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="92"> - <span class="hits">3</span> - - <code class="ruby"> errors &lt;&lt; e</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="92"> + <span class="hits">3</span> + + + + + <code class="ruby"> errors &lt;&lt; e</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="93"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="93"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="94"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="94"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="95"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="95"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="96"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="96"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="97"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="97"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="98"> - <span class="hits">1</span> - - <code class="ruby"> def validate_params(node_type, node)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="98"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate_params(node_type, node)</code> + </li> + </div> - <li class="covered" data-hits="115" data-linenumber="99"> - <span class="hits">115</span> - - <code class="ruby"> node.__params.reject { |p, _| p.to_s.start_with?(&#39;@&#39;) }.each do |param, value|</code> - </li> + <div> + <li class="covered" data-hits="115" data-linenumber="99"> + <span class="hits">115</span> + + + + + <code class="ruby"> node.__params.reject { |p, _| p.to_s.start_with?(&#39;@&#39;) }.each do |param, value|</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="100"> - - - <code class="ruby"> begin</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="100"> + + + + + + <code class="ruby"> begin</code> + </li> + </div> - <li class="covered" data-hits="109" data-linenumber="101"> - <span class="hits">109</span> - - <code class="ruby"> arg = node_type.fetch(&#39;args&#39;, []).find { |a| a.name == param.to_s }</code> - </li> + <div> + <li class="covered" data-hits="109" data-linenumber="101"> + <span class="hits">109</span> + + + + + <code class="ruby"> arg = node_type.fetch(&#39;args&#39;, []).find { |a| a.name == param.to_s }</code> + </li> + </div> - <li class="covered" data-hits="21" data-linenumber="102"> - <span class="hits">21</span> - - <code class="ruby"> fail &quot;Invalid argument &#39;#{param}&#39;&quot; if arg.nil?</code> - </li> + <div> + <li class="covered" data-hits="21" data-linenumber="102"> + <span class="hits">21</span> + + + + + <code class="ruby"> fail &quot;Invalid argument &#39;#{param}&#39;&quot; if arg.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="103"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="103"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="18" data-linenumber="104"> - <span class="hits">18</span> - - <code class="ruby"> arg_type = type_for(arg)</code> - </li> + <div> + <li class="covered" data-hits="18" data-linenumber="104"> + <span class="hits">18</span> + + + + + <code class="ruby"> arg_type = type_for(arg)</code> + </li> + </div> - <li class="covered" data-hits="18" data-linenumber="105"> - <span class="hits">18</span> - - <code class="ruby"> fail &quot;Argument type not found for &#39;#{param}&#39;&quot; if arg_type.nil?</code> - </li> + <div> + <li class="covered" data-hits="18" data-linenumber="105"> + <span class="hits">18</span> + + + + + <code class="ruby"> fail &quot;Argument type not found for &#39;#{param}&#39;&quot; if arg_type.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="106"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="106"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="18" data-linenumber="107"> - <span class="hits">18</span> - - <code class="ruby"> validate_value_for_type(arg_type, value, param)</code> - </li> + <div> + <li class="covered" data-hits="18" data-linenumber="107"> + <span class="hits">18</span> + + + + + <code class="ruby"> validate_value_for_type(arg_type, value, param)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="108"> - - - <code class="ruby"> rescue StandardError =&gt; e</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="108"> + + + + + + <code class="ruby"> rescue StandardError =&gt; e</code> + </li> + </div> - <li class="covered" data-hits="9" data-linenumber="109"> - <span class="hits">9</span> - - <code class="ruby"> errors &lt;&lt; e</code> - </li> + <div> + <li class="covered" data-hits="9" data-linenumber="109"> + <span class="hits">9</span> + + + + + <code class="ruby"> errors &lt;&lt; e</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="110"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="110"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="111"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="111"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="112"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="112"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="113"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="113"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="114"> - <span class="hits">1</span> - - <code class="ruby"> def validate_nesting_node(node_type, node)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="114"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate_nesting_node(node_type, node)</code> + </li> + </div> - <li class="covered" data-hits="90" data-linenumber="115"> - <span class="hits">90</span> - - <code class="ruby"> fail &quot;Invalid object for node &#39;#{node.__name}&#39;&quot; unless valid_object_node?(node_type, node)</code> - </li> + <div> + <li class="covered" data-hits="90" data-linenumber="115"> + <span class="hits">90</span> + + + + + <code class="ruby"> fail &quot;Invalid object for node &#39;#{node.__name}&#39;&quot; unless valid_object_node?(node_type, node)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="116"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="116"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="117"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="117"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="118"> - <span class="hits">1</span> - - <code class="ruby"> def valid_object_node?(node_type, node)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="118"> + <span class="hits">1</span> + + + + + <code class="ruby"> def valid_object_node?(node_type, node)</code> + </li> + </div> - <li class="covered" data-hits="90" data-linenumber="119"> - <span class="hits">90</span> - - <code class="ruby"> return false if %w[OBJECT INTERFACE].include?(node_type.kind) &amp;&amp; node.__nodes.empty?</code> - </li> + <div> + <li class="covered" data-hits="90" data-linenumber="119"> + <span class="hits">90</span> + + + + + <code class="ruby"> return false if %w[OBJECT INTERFACE].include?(node_type.kind) &amp;&amp; node.__nodes.empty?</code> + </li> + </div> - <li class="covered" data-hits="86" data-linenumber="120"> - <span class="hits">86</span> - - <code class="ruby"> true</code> - </li> + <div> + <li class="covered" data-hits="86" data-linenumber="120"> + <span class="hits">86</span> + + + + + <code class="ruby"> true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="121"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="121"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="122"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="122"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="123"> - <span class="hits">1</span> - - <code class="ruby"> def valid_array_node?(node_type, node)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="123"> + <span class="hits">1</span> + + + + + <code class="ruby"> def valid_array_node?(node_type, node)</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="124"> - - - <code class="ruby"> return false if %w[OBJECT INTERFACE].include?(node_type.kind) &amp;&amp; node.__nodes.empty?</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="124"> + + + + + + <code class="ruby"> return false if %w[OBJECT INTERFACE].include?(node_type.kind) &amp;&amp; node.__nodes.empty?</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="125"> - - - <code class="ruby"> true</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="125"> + + + + + + <code class="ruby"> true</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="126"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="126"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="127"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="127"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="128"> - <span class="hits">1</span> - - <code class="ruby"> def value_type_error(is_type, should_be, for_arg)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="128"> + <span class="hits">1</span> + + + + + <code class="ruby"> def value_type_error(is_type, should_be, for_arg)</code> + </li> + </div> - <li class="covered" data-hits="6" data-linenumber="129"> - <span class="hits">6</span> - - <code class="ruby"> should_be = should_be.kind == &#39;ENUM&#39; ? &#39;Enum&#39; : should_be.name</code> - </li> + <div> + <li class="covered" data-hits="6" data-linenumber="129"> + <span class="hits">6</span> + + + + + <code class="ruby"> should_be = should_be.kind == &#39;ENUM&#39; ? &#39;Enum&#39; : should_be.name</code> + </li> + </div> - <li class="covered" data-hits="6" data-linenumber="130"> - <span class="hits">6</span> - - <code class="ruby"> additional_message = &#39;. Wrap the value with `__enum`.&#39; if should_be == &#39;Enum&#39;</code> - </li> + <div> + <li class="covered" data-hits="6" data-linenumber="130"> + <span class="hits">6</span> + + + + + <code class="ruby"> additional_message = &#39;. Wrap the value with `__enum`.&#39; if should_be == &#39;Enum&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="131"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="131"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="6" data-linenumber="132"> - <span class="hits">6</span> - - <code class="ruby"> fail &quot;Value is &#39;#{is_type}&#39;, but should be &#39;#{should_be}&#39; for &#39;#{for_arg}&#39;#{additional_message}&quot;</code> - </li> + <div> + <li class="covered" data-hits="6" data-linenumber="132"> + <span class="hits">6</span> + + + + + <code class="ruby"> fail &quot;Value is &#39;#{is_type}&#39;, but should be &#39;#{should_be}&#39; for &#39;#{for_arg}&#39;#{additional_message}&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="133"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="133"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="134"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="134"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="135"> - <span class="hits">1</span> - - <code class="ruby"> def validate_value_for_type(arg_type, value, for_arg)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="135"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate_value_for_type(arg_type, value, for_arg)</code> + </li> + </div> - <li class="covered" data-hits="31" data-linenumber="136"> - <span class="hits">31</span> - - <code class="ruby"> case value</code> - </li> + <div> + <li class="covered" data-hits="31" data-linenumber="136"> + <span class="hits">31</span> + + + + + <code class="ruby"> case value</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="137"> - - - <code class="ruby"> when EnumValue</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="137"> + + + + + + <code class="ruby"> when EnumValue</code> + </li> + </div> - <li class="covered" data-hits="2" data-linenumber="138"> - <span class="hits">2</span> - - <code class="ruby"> if arg_type.kind == &#39;ENUM&#39; &amp;&amp; !arg_type.enumValues.map(&amp;:name).include?(value.to_s)</code> - </li> + <div> + <li class="covered" data-hits="2" data-linenumber="138"> + <span class="hits">2</span> + + + + + <code class="ruby"> if arg_type.kind == &#39;ENUM&#39; &amp;&amp; !arg_type.enumValues.map(&amp;:name).include?(value.to_s)</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="139"> - - - <code class="ruby"> fail &quot;Invalid value for Enum &#39;#{arg_type.name}&#39; for &#39;#{for_arg}&#39;&quot;</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="139"> + + + + + + <code class="ruby"> fail &quot;Invalid value for Enum &#39;#{arg_type.name}&#39; for &#39;#{for_arg}&#39;&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="140"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="140"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="141"> - - - <code class="ruby"> when ::String</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="141"> + + + + + + <code class="ruby"> when ::String</code> + </li> + </div> - <li class="covered" data-hits="15" data-linenumber="142"> - <span class="hits">15</span> - - <code class="ruby"> unless arg_type.name == &#39;String&#39; || arg_type.name == &#39;ID&#39;</code> - </li> + <div> + <li class="covered" data-hits="15" data-linenumber="142"> + <span class="hits">15</span> + + + + + <code class="ruby"> unless arg_type.name == &#39;String&#39; || arg_type.name == &#39;ID&#39;</code> + </li> + </div> - <li class="covered" data-hits="4" data-linenumber="143"> - <span class="hits">4</span> - - <code class="ruby"> value_type_error(&#39;String or ID&#39;, arg_type, for_arg)</code> - </li> + <div> + <li class="covered" data-hits="4" data-linenumber="143"> + <span class="hits">4</span> + + + + + <code class="ruby"> value_type_error(&#39;String or ID&#39;, arg_type, for_arg)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="144"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="144"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="145"> - - - <code class="ruby"> when ::Integer</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="145"> + + + + + + <code class="ruby"> when ::Integer</code> + </li> + </div> - <li class="covered" data-hits="5" data-linenumber="146"> - <span class="hits">5</span> - - <code class="ruby"> value_type_error(&#39;Integer&#39;, arg_type, for_arg) unless arg_type.name == &#39;Int&#39;</code> - </li> + <div> + <li class="covered" data-hits="5" data-linenumber="146"> + <span class="hits">5</span> + + + + + <code class="ruby"> value_type_error(&#39;Integer&#39;, arg_type, for_arg) unless arg_type.name == &#39;Int&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="147"> - - - <code class="ruby"> when ::Float</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="147"> + + + + + + <code class="ruby"> when ::Float</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="148"> - - - <code class="ruby"> value_type_error(&#39;Float&#39;, arg_type, for_arg) unless arg_type.name == &#39;Float&#39;</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="148"> + + + + + + <code class="ruby"> value_type_error(&#39;Float&#39;, arg_type, for_arg) unless arg_type.name == &#39;Float&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="149"> - - - <code class="ruby"> when ::Hash</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="149"> + + + + + + <code class="ruby"> when ::Hash</code> + </li> + </div> - <li class="covered" data-hits="9" data-linenumber="150"> - <span class="hits">9</span> - - <code class="ruby"> validate_hash_value(arg_type, value, for_arg)</code> - </li> + <div> + <li class="covered" data-hits="9" data-linenumber="150"> + <span class="hits">9</span> + + + + + <code class="ruby"> validate_hash_value(arg_type, value, for_arg)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="151"> - - - <code class="ruby"> when true, false</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="151"> + + + + + + <code class="ruby"> when true, false</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="152"> - - - <code class="ruby"> value_type_error(&#39;Boolean&#39;, arg_type, for_arg) unless arg_type.name == &#39;Boolean&#39;</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="152"> + + + + + + <code class="ruby"> value_type_error(&#39;Boolean&#39;, arg_type, for_arg) unless arg_type.name == &#39;Boolean&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="153"> - - - <code class="ruby"> else</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="153"> + + + + + + <code class="ruby"> else</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="154"> - - - <code class="ruby"> value_type_error(value.class.name, arg_type, for_arg)</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="154"> + + + + + + <code class="ruby"> value_type_error(value.class.name, arg_type, for_arg)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="155"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="155"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="156"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="156"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="157"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="157"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="158"> - <span class="hits">1</span> - - <code class="ruby"> def validate_hash_value(arg_type, value, for_arg)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="158"> + <span class="hits">1</span> + + + + + <code class="ruby"> def validate_hash_value(arg_type, value, for_arg)</code> + </li> + </div> - <li class="covered" data-hits="9" data-linenumber="159"> - <span class="hits">9</span> - - <code class="ruby"> value_type_error(&#39;Object&#39;, arg_type.name, for_arg) unless arg_type.kind == &#39;INPUT_OBJECT&#39;</code> - </li> + <div> + <li class="covered" data-hits="9" data-linenumber="159"> + <span class="hits">9</span> + + + + + <code class="ruby"> value_type_error(&#39;Object&#39;, arg_type.name, for_arg) unless arg_type.kind == &#39;INPUT_OBJECT&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="160"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="160"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="671" data-linenumber="161"> - <span class="hits">671</span> - - <code class="ruby"> type = types.find { |f| f.name == arg_type.name }</code> - </li> + <div> + <li class="covered" data-hits="671" data-linenumber="161"> + <span class="hits">671</span> + + + + + <code class="ruby"> type = types.find { |f| f.name == arg_type.name }</code> + </li> + </div> - <li class="covered" data-hits="9" data-linenumber="162"> - <span class="hits">9</span> - - <code class="ruby"> fail &quot;Type not found for &#39;#{arg_type.name}&#39;&quot; if type.nil?</code> - </li> + <div> + <li class="covered" data-hits="9" data-linenumber="162"> + <span class="hits">9</span> + + + + + <code class="ruby"> fail &quot;Type not found for &#39;#{arg_type.name}&#39;&quot; if type.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="163"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="163"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="9" data-linenumber="164"> - <span class="hits">9</span> - - <code class="ruby"> value.each do |k, v|</code> - </li> + <div> + <li class="covered" data-hits="9" data-linenumber="164"> + <span class="hits">9</span> + + + + + <code class="ruby"> value.each do |k, v|</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="165"> - - - <code class="ruby"> begin</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="165"> + + + + + + <code class="ruby"> begin</code> + </li> + </div> - <li class="covered" data-hits="128" data-linenumber="166"> - <span class="hits">128</span> - - <code class="ruby"> input_field = type.fetch(&#39;inputFields&#39;, []).find { |f| f.name == k.to_s }</code> - </li> + <div> + <li class="covered" data-hits="128" data-linenumber="166"> + <span class="hits">128</span> + + + + + <code class="ruby"> input_field = type.fetch(&#39;inputFields&#39;, []).find { |f| f.name == k.to_s }</code> + </li> + </div> - <li class="covered" data-hits="13" data-linenumber="167"> - <span class="hits">13</span> - - <code class="ruby"> fail &quot;Input field definition not found for &#39;#{k}&#39;&quot; if input_field.nil?</code> - </li> + <div> + <li class="covered" data-hits="13" data-linenumber="167"> + <span class="hits">13</span> + + + + + <code class="ruby"> fail &quot;Input field definition not found for &#39;#{k}&#39;&quot; if input_field.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="168"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="168"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="13" data-linenumber="169"> - <span class="hits">13</span> - - <code class="ruby"> input_field_type = type_for(input_field)</code> - </li> + <div> + <li class="covered" data-hits="13" data-linenumber="169"> + <span class="hits">13</span> + + + + + <code class="ruby"> input_field_type = type_for(input_field)</code> + </li> + </div> - <li class="covered" data-hits="13" data-linenumber="170"> - <span class="hits">13</span> - - <code class="ruby"> fail &quot;Input field type not found for &#39;#{k}&#39;&quot; if input_field_type.nil?</code> - </li> + <div> + <li class="covered" data-hits="13" data-linenumber="170"> + <span class="hits">13</span> + + + + + <code class="ruby"> fail &quot;Input field type not found for &#39;#{k}&#39;&quot; if input_field_type.nil?</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="171"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="171"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="13" data-linenumber="172"> - <span class="hits">13</span> - - <code class="ruby"> validate_value_for_type(input_field_type, v, k)</code> - </li> + <div> + <li class="covered" data-hits="13" data-linenumber="172"> + <span class="hits">13</span> + + + + + <code class="ruby"> validate_value_for_type(input_field_type, v, k)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="173"> - - - <code class="ruby"> rescue StandardError =&gt; e</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="173"> + + + + + + <code class="ruby"> rescue StandardError =&gt; e</code> + </li> + </div> - <li class="missed" data-hits="0" data-linenumber="174"> - - - <code class="ruby"> errors &lt;&lt; e</code> - </li> + <div> + <li class="missed" data-hits="0" data-linenumber="174"> + + + + + + <code class="ruby"> errors &lt;&lt; e</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="175"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="175"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="176"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="176"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="177"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="177"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="178"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="178"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="179"> - <span class="hits">1</span> - - <code class="ruby"> def type_for(field_type)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="179"> + <span class="hits">1</span> + + + + + <code class="ruby"> def type_for(field_type)</code> + </li> + </div> - <li class="covered" data-hits="121" data-linenumber="180"> - <span class="hits">121</span> - - <code class="ruby"> type = case field_type.type.kind</code> - </li> + <div> + <li class="covered" data-hits="121" data-linenumber="180"> + <span class="hits">121</span> + + + + + <code class="ruby"> type = case field_type.type.kind</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="181"> - - - <code class="ruby"> when &#39;NON_NULL&#39;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="181"> + + + + + + <code class="ruby"> when &#39;NON_NULL&#39;</code> + </li> + </div> - <li class="covered" data-hits="29" data-linenumber="182"> - <span class="hits">29</span> - - <code class="ruby"> non_null_type(field_type.type.ofType)</code> - </li> + <div> + <li class="covered" data-hits="29" data-linenumber="182"> + <span class="hits">29</span> + + + + + <code class="ruby"> non_null_type(field_type.type.ofType)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="183"> - - - <code class="ruby"> when &#39;LIST&#39;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="183"> + + + + + + <code class="ruby"> when &#39;LIST&#39;</code> + </li> + </div> - <li class="covered" data-hits="10" data-linenumber="184"> - <span class="hits">10</span> - - <code class="ruby"> field_type.type.ofType</code> - </li> + <div> + <li class="covered" data-hits="10" data-linenumber="184"> + <span class="hits">10</span> + + + + + <code class="ruby"> field_type.type.ofType</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="185"> - - - <code class="ruby"> when &#39;OBJECT&#39;, &#39;INTERFACE&#39;, &#39;INPUT_OBJECT&#39;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="185"> + + + + + + <code class="ruby"> when &#39;OBJECT&#39;, &#39;INTERFACE&#39;, &#39;INPUT_OBJECT&#39;</code> + </li> + </div> - <li class="covered" data-hits="42" data-linenumber="186"> - <span class="hits">42</span> - - <code class="ruby"> field_type.type</code> - </li> + <div> + <li class="covered" data-hits="42" data-linenumber="186"> + <span class="hits">42</span> + + + + + <code class="ruby"> field_type.type</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="187"> - - - <code class="ruby"> when &#39;SCALAR&#39;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="187"> + + + + + + <code class="ruby"> when &#39;SCALAR&#39;</code> + </li> + </div> - <li class="covered" data-hits="40" data-linenumber="188"> - <span class="hits">40</span> - - <code class="ruby"> field_type.type</code> - </li> + <div> + <li class="covered" data-hits="40" data-linenumber="188"> + <span class="hits">40</span> + + + + + <code class="ruby"> field_type.type</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="189"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="189"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="190"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="190"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="2928" data-linenumber="191"> - <span class="hits">2928</span> - - <code class="ruby"> types.find { |t| t.name == type.name }</code> - </li> + <div> + <li class="covered" data-hits="2928" data-linenumber="191"> + <span class="hits">2928</span> + + + + + <code class="ruby"> types.find { |t| t.name == type.name }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="192"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="192"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="193"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="193"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="194"> - <span class="hits">1</span> - - <code class="ruby"> def non_null_type(non_null)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="194"> + <span class="hits">1</span> + + + + + <code class="ruby"> def non_null_type(non_null)</code> + </li> + </div> - <li class="covered" data-hits="29" data-linenumber="195"> - <span class="hits">29</span> - - <code class="ruby"> case non_null.kind</code> - </li> + <div> + <li class="covered" data-hits="29" data-linenumber="195"> + <span class="hits">29</span> + + + + + <code class="ruby"> case non_null.kind</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="196"> - - - <code class="ruby"> when &#39;LIST&#39;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="196"> + + + + + + <code class="ruby"> when &#39;LIST&#39;</code> + </li> + </div> - <li class="covered" data-hits="24" data-linenumber="197"> - <span class="hits">24</span> - - <code class="ruby"> non_null.ofType</code> - </li> + <div> + <li class="covered" data-hits="24" data-linenumber="197"> + <span class="hits">24</span> + + + + + <code class="ruby"> non_null.ofType</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="198"> - - - <code class="ruby"> else</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="198"> + + + + + + <code class="ruby"> else</code> + </li> + </div> - <li class="covered" data-hits="5" data-linenumber="199"> - <span class="hits">5</span> - - <code class="ruby"> non_null</code> - </li> + <div> + <li class="covered" data-hits="5" data-linenumber="199"> + <span class="hits">5</span> + + + + + <code class="ruby"> non_null</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="200"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="200"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="201"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="201"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="202"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="202"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="203"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="203"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="8f4756eb3921bfb6ba841bdb3a8d508fd15e06f8"> + <div class="source_table" id="2af0d9e5fc34b660392ccf94253890cc4754c950"> <div class="header"> <h3>spec/lib/gqli/dsl_spec.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>174</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>174</b> relevant lines. <span class="green"><b>174</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="covered" data-hits="1" data-linenumber="1"> - <span class="hits">1</span> - - <code class="ruby">require &#39;spec_helper&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="1"> + <span class="hits">1</span> + + + + + <code class="ruby">require &#39;spec_helper&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">class MockGQLInterface</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">class MockGQLInterface</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="4"> - <span class="hits">1</span> - - <code class="ruby"> include GQLi::DSL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="4"> + <span class="hits">1</span> + + + + + <code class="ruby"> include GQLi::DSL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="5"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="5"> + + + + + + <code class="ruby">end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="6"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="6"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="7"> - <span class="hits">1</span> - - <code class="ruby">describe GQLi::DSL do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="7"> + <span class="hits">1</span> + + + + + <code class="ruby">describe GQLi::DSL do</code> + </li> + </div> - <li class="covered" data-hits="18" data-linenumber="8"> - <span class="hits">18</span> - - <code class="ruby"> subject { described_class }</code> - </li> + <div> + <li class="covered" data-hits="18" data-linenumber="8"> + <span class="hits">18</span> + + + + + <code class="ruby"> subject { described_class }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="9"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="9"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="10"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;module level methods&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="10"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;module level methods&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="11"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;::query&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="11"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;::query&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="12"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query without name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="12"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query without name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="13"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="13"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="14"> - <span class="hits">1</span> - - <code class="ruby"> someField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="14"> + <span class="hits">1</span> + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="15"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="16"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="16"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="17"> - <span class="hits">1</span> - - <code class="ruby"> expect(query).to be_a GQLi::Query</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="17"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query).to be_a GQLi::Query</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="18"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="18"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="19"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"> someField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="23"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq query.to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq query.to_s</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="24"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="24"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="25"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="26"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query with a name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="26"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query with a name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="27"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query(&#39;FooBar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="27"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query(&#39;FooBar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="28"> - <span class="hits">1</span> - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="28"> + <span class="hits">1</span> + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="29"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="29"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="30"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="30"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="31"> - <span class="hits">1</span> - - <code class="ruby"> expect(query).to be_a GQLi::Query</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="31"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query).to be_a GQLi::Query</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="32"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="32"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="33"> - - - <code class="ruby"> query FooBar {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="33"> + + + + + + <code class="ruby"> query FooBar {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="34"> - - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="34"> + + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="35"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="35"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="36"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="36"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="37"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="37"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="38"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="38"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="39"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="39"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="40"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;::mutation&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="40"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;::mutation&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="41"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a mutation without name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="41"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a mutation without name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="42"> - <span class="hits">1</span> - - <code class="ruby"> mutation = subject.mutation {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="42"> + <span class="hits">1</span> + + + + + <code class="ruby"> mutation = subject.mutation {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="43"> - <span class="hits">1</span> - - <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="43"> + <span class="hits">1</span> + + + + + <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="44"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="44"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="45"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="45"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="46"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="46"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="47"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="47"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="48"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="48"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="49"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="49"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="50"> - - - <code class="ruby"> mutation {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="50"> + + + + + + <code class="ruby"> mutation {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="51"> - - - <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="51"> + + + + + + <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="52"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="52"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="53"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="53"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="54"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="54"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="55"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="55"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="56"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation.to_gql).to eq mutation.to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="56"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation.to_gql).to eq mutation.to_s</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="57"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="57"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="58"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="58"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="59"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query with a name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="59"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query with a name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="60"> - <span class="hits">1</span> - - <code class="ruby"> mutation = subject.mutation(&#39;AddFoo&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="60"> + <span class="hits">1</span> + + + + + <code class="ruby"> mutation = subject.mutation(&#39;AddFoo&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="61"> - <span class="hits">1</span> - - <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="61"> + <span class="hits">1</span> + + + + + <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="62"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="62"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="63"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="63"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="64"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="64"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="65"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="65"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="66"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="66"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="67"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="67"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="68"> - - - <code class="ruby"> mutation AddFoo {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="68"> + + + + + + <code class="ruby"> mutation AddFoo {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="69"> - - - <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="69"> + + + + + + <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="70"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="70"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="71"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="71"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="72"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="72"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="73"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="73"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="74"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="74"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="75"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="75"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="76"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="76"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="77"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;::subscription&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="77"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;::subscription&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="78"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a subscription without name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="78"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a subscription without name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="79"> - <span class="hits">1</span> - - <code class="ruby"> subscription = subject.subscription {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="79"> + <span class="hits">1</span> + + + + + <code class="ruby"> subscription = subject.subscription {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="80"> - <span class="hits">1</span> - - <code class="ruby"> someField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="80"> + <span class="hits">1</span> + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="81"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="81"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="82"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="82"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="83"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="83"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="84"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="84"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="85"> - - - <code class="ruby"> subscription {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="85"> + + + + + + <code class="ruby"> subscription {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="86"> - - - <code class="ruby"> someField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="86"> + + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="87"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="87"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="88"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="88"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="89"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription.to_gql).to eq subscription.to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="89"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription.to_gql).to eq subscription.to_s</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="90"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="90"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="91"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="91"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="92"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a subscription with a name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="92"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a subscription with a name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="93"> - <span class="hits">1</span> - - <code class="ruby"> subscription = subject.subscription(&#39;FooBar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="93"> + <span class="hits">1</span> + + + + + <code class="ruby"> subscription = subject.subscription(&#39;FooBar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="94"> - <span class="hits">1</span> - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="94"> + <span class="hits">1</span> + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="95"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="95"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="96"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="96"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="97"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="97"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="98"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="98"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="99"> - - - <code class="ruby"> subscription FooBar {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="99"> + + + + + + <code class="ruby"> subscription FooBar {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="100"> - - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="100"> + + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="101"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="101"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="102"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="102"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="103"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="103"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="104"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="104"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="105"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="105"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="106"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;::fragment&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="106"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;::fragment&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="107"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a fragment&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="107"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a fragment&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="108"> - <span class="hits">1</span> - - <code class="ruby"> fragment = subject.fragment(&#39;FooBar&#39;, &#39;Foo&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="108"> + <span class="hits">1</span> + + + + + <code class="ruby"> fragment = subject.fragment(&#39;FooBar&#39;, &#39;Foo&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="109"> - <span class="hits">1</span> - - <code class="ruby"> someFooField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="109"> + <span class="hits">1</span> + + + + + <code class="ruby"> someFooField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="110"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="110"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="111"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="111"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="112"> - <span class="hits">1</span> - - <code class="ruby"> expect(fragment).to be_a GQLi::Fragment</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="112"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(fragment).to be_a GQLi::Fragment</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="113"> - <span class="hits">1</span> - - <code class="ruby"> expect(fragment.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="113"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(fragment.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="114"> - - - <code class="ruby"> fragment FooBar on Foo {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="114"> + + + + + + <code class="ruby"> fragment FooBar on Foo {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="115"> - - - <code class="ruby"> someFooField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="115"> + + + + + + <code class="ruby"> someFooField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="116"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="116"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="117"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="117"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="118"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="118"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="119"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="119"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="120"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="120"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="121"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;::enum&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="121"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;::enum&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="122"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create an enum value&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="122"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create an enum value&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="123"> - <span class="hits">1</span> - - <code class="ruby"> enum_value = subject.enum(&#39;foo&#39;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="123"> + <span class="hits">1</span> + + + + + <code class="ruby"> enum_value = subject.enum(&#39;foo&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="124"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="124"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="125"> - <span class="hits">1</span> - - <code class="ruby"> expect(enum_value).to be_a GQLi::EnumValue</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="125"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(enum_value).to be_a GQLi::EnumValue</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="126"> - <span class="hits">1</span> - - <code class="ruby"> expect(enum_value.to_s).to eq &#39;foo&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="126"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(enum_value.to_s).to eq &#39;foo&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="127"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="127"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="128"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="128"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="129"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="129"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="130"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="130"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="131"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;instance level methods&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="131"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;instance level methods&#39; do</code> + </li> + </div> - <li class="covered" data-hits="9" data-linenumber="132"> - <span class="hits">9</span> - - <code class="ruby"> subject { MockGQLInterface.new }</code> - </li> + <div> + <li class="covered" data-hits="9" data-linenumber="132"> + <span class="hits">9</span> + + + + + <code class="ruby"> subject { MockGQLInterface.new }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="133"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="133"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="134"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;#query does the same as ::query&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="134"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;#query does the same as ::query&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="135"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query without name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="135"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query without name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="136"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="136"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="137"> - <span class="hits">1</span> - - <code class="ruby"> someField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="137"> + <span class="hits">1</span> + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="138"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="138"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="139"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="139"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="140"> - <span class="hits">1</span> - - <code class="ruby"> expect(query).to be_a GQLi::Query</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="140"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query).to be_a GQLi::Query</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="141"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="141"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="142"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="142"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="143"> - - - <code class="ruby"> someField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="143"> + + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="144"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="144"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="145"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="145"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="146"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="146"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="147"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="147"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="148"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query with a name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="148"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query with a name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="149"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query(&#39;FooBar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="149"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query(&#39;FooBar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="150"> - <span class="hits">1</span> - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="150"> + <span class="hits">1</span> + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="151"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="151"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="152"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="152"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="153"> - <span class="hits">1</span> - - <code class="ruby"> expect(query).to be_a GQLi::Query</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="153"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query).to be_a GQLi::Query</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="154"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="154"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="155"> - - - <code class="ruby"> query FooBar {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="155"> + + + + + + <code class="ruby"> query FooBar {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="156"> - - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="156"> + + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="157"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="157"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="158"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="158"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="159"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="159"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="160"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="160"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="161"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="161"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="162"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;#mutation does the same as ::mutation&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="162"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;#mutation does the same as ::mutation&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="163"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a mutation without name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="163"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a mutation without name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="164"> - <span class="hits">1</span> - - <code class="ruby"> mutation = subject.mutation {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="164"> + <span class="hits">1</span> + + + + + <code class="ruby"> mutation = subject.mutation {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="165"> - <span class="hits">1</span> - - <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="165"> + <span class="hits">1</span> + + + + + <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="166"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="166"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="167"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="167"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="168"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="168"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="169"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="169"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="170"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="170"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="171"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="171"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="172"> - - - <code class="ruby"> mutation {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="172"> + + + + + + <code class="ruby"> mutation {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="173"> - - - <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="173"> + + + + + + <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="174"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="174"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="175"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="175"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="176"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="176"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="177"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="177"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="178"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation.to_gql).to eq mutation.to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="178"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation.to_gql).to eq mutation.to_s</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="179"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="179"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="180"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="180"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="181"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query with a name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="181"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query with a name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="182"> - <span class="hits">1</span> - - <code class="ruby"> mutation = subject.mutation(&#39;AddFoo&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="182"> + <span class="hits">1</span> + + + + + <code class="ruby"> mutation = subject.mutation(&#39;AddFoo&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="183"> - <span class="hits">1</span> - - <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="183"> + <span class="hits">1</span> + + + + + <code class="ruby"> addFoo(name: &#39;bar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="184"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="184"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="185"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="185"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="186"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="186"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="187"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="187"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="188"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="188"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation).to be_a GQLi::Mutation</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="189"> - <span class="hits">1</span> - - <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="189"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(mutation.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="190"> - - - <code class="ruby"> mutation AddFoo {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="190"> + + + + + + <code class="ruby"> mutation AddFoo {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="191"> - - - <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="191"> + + + + + + <code class="ruby"> addFoo(name: &quot;bar&quot;) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="192"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="192"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="193"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="193"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="194"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="194"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="195"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="195"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="196"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="196"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="197"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="197"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="198"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="198"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="199"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;#subscription does the same as ::subscription&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="199"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;#subscription does the same as ::subscription&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="200"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a subscription without name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="200"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a subscription without name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="201"> - <span class="hits">1</span> - - <code class="ruby"> subscription = subject.subscription {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="201"> + <span class="hits">1</span> + + + + + <code class="ruby"> subscription = subject.subscription {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="202"> - <span class="hits">1</span> - - <code class="ruby"> someField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="202"> + <span class="hits">1</span> + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="203"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="203"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="204"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="204"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="205"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="205"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="206"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="206"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="207"> - - - <code class="ruby"> subscription {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="207"> + + + + + + <code class="ruby"> subscription {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="208"> - - - <code class="ruby"> someField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="208"> + + + + + + <code class="ruby"> someField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="209"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="209"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="210"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="210"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="211"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription.to_gql).to eq subscription.to_s</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="211"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription.to_gql).to eq subscription.to_s</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="212"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="212"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="213"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="213"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="214"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a subscription with a name&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="214"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a subscription with a name&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="215"> - <span class="hits">1</span> - - <code class="ruby"> subscription = subject.subscription(&#39;FooBar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="215"> + <span class="hits">1</span> + + + + + <code class="ruby"> subscription = subject.subscription(&#39;FooBar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="216"> - <span class="hits">1</span> - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="216"> + <span class="hits">1</span> + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="217"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="217"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="218"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="218"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="219"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="219"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription).to be_a GQLi::Subscription</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="220"> - <span class="hits">1</span> - - <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="220"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subscription.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="221"> - - - <code class="ruby"> subscription FooBar {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="221"> + + + + + + <code class="ruby"> subscription FooBar {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="222"> - - - <code class="ruby"> someOtherField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="222"> + + + + + + <code class="ruby"> someOtherField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="223"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="223"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="224"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="224"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="225"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="225"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="226"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="226"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="227"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="227"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="228"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;#fragment does the same as ::fragment&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="228"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;#fragment does the same as ::fragment&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="229"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a fragment&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="229"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a fragment&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="230"> - <span class="hits">1</span> - - <code class="ruby"> fragment = subject.fragment(&#39;FooBar&#39;, &#39;Foo&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="230"> + <span class="hits">1</span> + + + + + <code class="ruby"> fragment = subject.fragment(&#39;FooBar&#39;, &#39;Foo&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="231"> - <span class="hits">1</span> - - <code class="ruby"> someFooField</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="231"> + <span class="hits">1</span> + + + + + <code class="ruby"> someFooField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="232"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="232"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="233"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="233"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="234"> - <span class="hits">1</span> - - <code class="ruby"> expect(fragment).to be_a GQLi::Fragment</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="234"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(fragment).to be_a GQLi::Fragment</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="235"> - <span class="hits">1</span> - - <code class="ruby"> expect(fragment.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="235"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(fragment.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="236"> - - - <code class="ruby"> fragment FooBar on Foo {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="236"> + + + + + + <code class="ruby"> fragment FooBar on Foo {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="237"> - - - <code class="ruby"> someFooField</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="237"> + + + + + + <code class="ruby"> someFooField</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="238"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="238"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="239"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="239"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="240"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="240"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="241"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="241"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="242"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="242"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="243"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;#enum does the same as ::enum&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="243"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;#enum does the same as ::enum&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="244"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create an enum value&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="244"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create an enum value&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="245"> - <span class="hits">1</span> - - <code class="ruby"> enum_value = subject.enum(&#39;foo&#39;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="245"> + <span class="hits">1</span> + + + + + <code class="ruby"> enum_value = subject.enum(&#39;foo&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="246"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="246"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="247"> - <span class="hits">1</span> - - <code class="ruby"> expect(enum_value).to be_a GQLi::EnumValue</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="247"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(enum_value).to be_a GQLi::EnumValue</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="248"> - <span class="hits">1</span> - - <code class="ruby"> expect(enum_value.to_s).to eq &#39;foo&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="248"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(enum_value.to_s).to eq &#39;foo&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="249"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="249"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="250"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="250"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="251"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="251"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="252"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="252"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="253"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;node DSL&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="253"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;node DSL&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="254"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;nodes can have arguments&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="254"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;nodes can have arguments&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="255"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="255"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="256"> - <span class="hits">1</span> - - <code class="ruby"> someNode(arg1: 100)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="256"> + <span class="hits">1</span> + + + + + <code class="ruby"> someNode(arg1: 100)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="257"> - <span class="hits">1</span> - - <code class="ruby"> otherNode(arg2: &#39;some_string&#39;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="257"> + <span class="hits">1</span> + + + + + <code class="ruby"> otherNode(arg2: &#39;some_string&#39;)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="258"> - <span class="hits">1</span> - - <code class="ruby"> moreNodes(arg3: { nestedArg: [1, 2] })</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="258"> + <span class="hits">1</span> + + + + + <code class="ruby"> moreNodes(arg3: { nestedArg: [1, 2] })</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="259"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="259"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="260"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="260"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="261"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="261"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="262"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="262"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="263"> - - - <code class="ruby"> someNode(arg1: 100)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="263"> + + + + + + <code class="ruby"> someNode(arg1: 100)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="264"> - - - <code class="ruby"> otherNode(arg2: &quot;some_string&quot;)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="264"> + + + + + + <code class="ruby"> otherNode(arg2: &quot;some_string&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="265"> - - - <code class="ruby"> moreNodes(arg3: {nestedArg: [1, 2]})</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="265"> + + + + + + <code class="ruby"> moreNodes(arg3: {nestedArg: [1, 2]})</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="266"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="266"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="267"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="267"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="268"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="268"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="269"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="269"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="270"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;nodes can have aliases&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="270"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;nodes can have aliases&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="271"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="271"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="272"> - <span class="hits">1</span> - - <code class="ruby"> __node(&#39;pinned: catCollection&#39;, where: {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="272"> + <span class="hits">1</span> + + + + + <code class="ruby"> __node(&#39;pinned: catCollection&#39;, where: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="273"> - - - <code class="ruby"> sys: { id_in: &#39;nyancat&#39; }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="273"> + + + + + + <code class="ruby"> sys: { id_in: &#39;nyancat&#39; }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="274"> - - - <code class="ruby"> }) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="274"> + + + + + + <code class="ruby"> }) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="275"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="275"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="276"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="276"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="277"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="277"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="278"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="278"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="279"> - <span class="hits">1</span> - - <code class="ruby"> __node(&#39;unpinned: catCollection&#39;, where: {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="279"> + <span class="hits">1</span> + + + + + <code class="ruby"> __node(&#39;unpinned: catCollection&#39;, where: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="280"> - - - <code class="ruby"> sys: { id_not_in: &#39;nyancat&#39; }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="280"> + + + + + + <code class="ruby"> sys: { id_not_in: &#39;nyancat&#39; }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="281"> - - - <code class="ruby"> }, limit: 4) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="281"> + + + + + + <code class="ruby"> }, limit: 4) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="282"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="282"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="283"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="283"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="284"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="284"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="285"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="285"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="286"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="286"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="287"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="287"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="288"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="288"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="289"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="289"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="290"> - - - <code class="ruby"> pinned: catCollection(where: {sys: {id_in: &quot;nyancat&quot;}}) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="290"> + + + + + + <code class="ruby"> pinned: catCollection(where: {sys: {id_in: &quot;nyancat&quot;}}) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="291"> - - - <code class="ruby"> items {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="291"> + + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="292"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="292"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="293"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="293"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="294"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="294"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="295"> - - - <code class="ruby"> unpinned: catCollection(where: {sys: {id_not_in: &quot;nyancat&quot;}}, limit: 4) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="295"> + + + + + + <code class="ruby"> unpinned: catCollection(where: {sys: {id_not_in: &quot;nyancat&quot;}}, limit: 4) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="296"> - - - <code class="ruby"> items {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="296"> + + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="297"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="297"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="298"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="298"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="299"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="299"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="300"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="300"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="301"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="301"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="302"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="302"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="303"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="303"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="304"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;nodes can have directives&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="304"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;nodes can have directives&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="305"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="305"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="306"> - <span class="hits">1</span> - - <code class="ruby"> someNode(:@include =&gt; { if: true })</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="306"> + <span class="hits">1</span> + + + + + <code class="ruby"> someNode(:@include =&gt; { if: true })</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="307"> - <span class="hits">1</span> - - <code class="ruby"> otherNode(:@skip =&gt; { if: false })</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="307"> + <span class="hits">1</span> + + + + + <code class="ruby"> otherNode(:@skip =&gt; { if: false })</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="308"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="308"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="309"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="309"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="310"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="310"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="311"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="311"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="312"> - - - <code class="ruby"> someNode @include(if: true)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="312"> + + + + + + <code class="ruby"> someNode @include(if: true)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="313"> - - - <code class="ruby"> otherNode @skip(if: false)</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="313"> + + + + + + <code class="ruby"> otherNode @skip(if: false)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="314"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="314"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="315"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="315"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="316"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="316"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="317"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="317"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="318"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;nodes can have arbitrarily nested nodes&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="318"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;nodes can have arbitrarily nested nodes&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="319"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="319"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="320"> - <span class="hits">1</span> - - <code class="ruby"> aNode {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="320"> + <span class="hits">1</span> + + + + + <code class="ruby"> aNode {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="321"> - <span class="hits">1</span> - - <code class="ruby"> withChild {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="321"> + <span class="hits">1</span> + + + + + <code class="ruby"> withChild {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="322"> - <span class="hits">1</span> - - <code class="ruby"> moreChildren</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="322"> + <span class="hits">1</span> + + + + + <code class="ruby"> moreChildren</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="323"> - <span class="hits">1</span> - - <code class="ruby"> andASibiling(someParameterHere: &#39;just for fun&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="323"> + <span class="hits">1</span> + + + + + <code class="ruby"> andASibiling(someParameterHere: &#39;just for fun&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="324"> - <span class="hits">1</span> - - <code class="ruby"> withEvenMore</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="324"> + <span class="hits">1</span> + + + + + <code class="ruby"> withEvenMore</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="325"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="325"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="326"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="326"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="327"> - <span class="hits">1</span> - - <code class="ruby"> alsoASibiling</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="327"> + <span class="hits">1</span> + + + + + <code class="ruby"> alsoASibiling</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="328"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="328"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="329"> - <span class="hits">1</span> - - <code class="ruby"> withoutChild</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="329"> + <span class="hits">1</span> + + + + + <code class="ruby"> withoutChild</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="330"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="330"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="331"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="331"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="332"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="332"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="333"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="333"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="334"> - - - <code class="ruby"> aNode {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="334"> + + + + + + <code class="ruby"> aNode {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="335"> - - - <code class="ruby"> withChild {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="335"> + + + + + + <code class="ruby"> withChild {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="336"> - - - <code class="ruby"> moreChildren</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="336"> + + + + + + <code class="ruby"> moreChildren</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="337"> - - - <code class="ruby"> andASibiling(someParameterHere: &quot;just for fun&quot;) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="337"> + + + + + + <code class="ruby"> andASibiling(someParameterHere: &quot;just for fun&quot;) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="338"> - - - <code class="ruby"> withEvenMore</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="338"> + + + + + + <code class="ruby"> withEvenMore</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="339"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="339"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="340"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="340"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="341"> - - - <code class="ruby"> alsoASibiling</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="341"> + + + + + + <code class="ruby"> alsoASibiling</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="342"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="342"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="343"> - - - <code class="ruby"> withoutChild</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="343"> + + + + + + <code class="ruby"> withoutChild</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="344"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="344"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="345"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="345"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="346"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="346"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="347"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="347"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="348"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;queries can have inlined fragments at any level&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="348"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;queries can have inlined fragments at any level&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="349"> - <span class="hits">1</span> - - <code class="ruby"> NameFragment = subject.fragment(&#39;NameFragment&#39;, &#39;Foo&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="349"> + <span class="hits">1</span> + + + + + <code class="ruby"> NameFragment = subject.fragment(&#39;NameFragment&#39;, &#39;Foo&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="350"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="350"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="351"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="351"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="352"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="352"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="353"> - <span class="hits">1</span> - - <code class="ruby"> AgeFragment = subject.fragment(&#39;AgeFragment&#39;, &#39;Foo&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="353"> + <span class="hits">1</span> + + + + + <code class="ruby"> AgeFragment = subject.fragment(&#39;AgeFragment&#39;, &#39;Foo&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="354"> - <span class="hits">1</span> - - <code class="ruby"> age</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="354"> + <span class="hits">1</span> + + + + + <code class="ruby"> age</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="355"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="355"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="356"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="356"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="357"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="357"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="358"> - <span class="hits">1</span> - - <code class="ruby"> peopleCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="358"> + <span class="hits">1</span> + + + + + <code class="ruby"> peopleCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="359"> - <span class="hits">1</span> - - <code class="ruby"> ___ NameFragment</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="359"> + <span class="hits">1</span> + + + + + <code class="ruby"> ___ NameFragment</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="360"> - <span class="hits">1</span> - - <code class="ruby"> ___ AgeFragment</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="360"> + <span class="hits">1</span> + + + + + <code class="ruby"> ___ AgeFragment</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="361"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="361"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="362"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="362"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="363"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="363"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="364"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="364"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="365"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="365"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="366"> - - - <code class="ruby"> peopleCollection {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="366"> + + + + + + <code class="ruby"> peopleCollection {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="367"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="367"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="368"> - - - <code class="ruby"> age</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="368"> + + + + + + <code class="ruby"> age</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="369"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="369"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="370"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="370"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="371"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="371"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="372"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="372"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="373"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="373"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="374"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;queries can have type matchers&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="374"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;queries can have type matchers&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="375"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="375"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="376"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="376"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="377"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="377"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="378"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="378"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="379"> - <span class="hits">1</span> - - <code class="ruby"> bestFriend {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="379"> + <span class="hits">1</span> + + + + + <code class="ruby"> bestFriend {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="380"> - <span class="hits">1</span> - - <code class="ruby"> __on(&#39;Cat&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="380"> + <span class="hits">1</span> + + + + + <code class="ruby"> __on(&#39;Cat&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="381"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="381"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="382"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="382"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="383"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="383"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="384"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="384"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="385"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="385"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="386"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="386"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="387"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="387"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="388"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="388"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="389"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="389"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="390"> - - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="390"> + + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="391"> - - - <code class="ruby"> items {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="391"> + + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="392"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="392"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="393"> - - - <code class="ruby"> bestFriend {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="393"> + + + + + + <code class="ruby"> bestFriend {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="394"> - - - <code class="ruby"> ... on Cat {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="394"> + + + + + + <code class="ruby"> ... on Cat {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="395"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="395"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="396"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="396"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="397"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="397"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="398"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="398"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="399"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="399"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="400"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="400"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="401"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="401"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="402"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="402"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="403"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="403"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="404"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can use __node to define nodes that would collide otherwise&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="404"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can use __node to define nodes that would collide otherwise&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="405"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="405"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="406"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="406"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="407"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="407"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="408"> - <span class="hits">1</span> - - <code class="ruby"> sys {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="408"> + <span class="hits">1</span> + + + + + <code class="ruby"> sys {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="409"> - <span class="hits">1</span> - - <code class="ruby"> __node(&#39;id&#39;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="409"> + <span class="hits">1</span> + + + + + <code class="ruby"> __node(&#39;id&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="410"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="410"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="411"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="411"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="412"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="412"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="413"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="413"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="414"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="414"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="415"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="415"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="416"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="416"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="417"> - - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="417"> + + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="418"> - - - <code class="ruby"> items {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="418"> + + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="419"> - - - <code class="ruby"> sys {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="419"> + + + + + + <code class="ruby"> sys {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="420"> - - - <code class="ruby"> id</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="420"> + + + + + + <code class="ruby"> id</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="421"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="421"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="422"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="422"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="423"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="423"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="424"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="424"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="425"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="425"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="426"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="426"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="427"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="427"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="428"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;__node can receive arguments and children nodes&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="428"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;__node can receive arguments and children nodes&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="429"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="429"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="430"> - <span class="hits">1</span> - - <code class="ruby"> __node(&#39;catCollection&#39;, limit: 1) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="430"> + <span class="hits">1</span> + + + + + <code class="ruby"> __node(&#39;catCollection&#39;, limit: 1) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="431"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="431"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="432"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="432"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="433"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="433"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="434"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="434"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="435"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="435"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="436"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="436"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="437"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="437"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="438"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="438"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="439"> - - - <code class="ruby"> catCollection(limit: 1) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="439"> + + + + + + <code class="ruby"> catCollection(limit: 1) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="440"> - - - <code class="ruby"> items {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="440"> + + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="441"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="441"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="442"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="442"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="443"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="443"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="444"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="444"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="445"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="445"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="446"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="446"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="447"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="447"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="448"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;__enum can create EnumType values&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="448"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;__enum can create EnumType values&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="449"> - <span class="hits">1</span> - - <code class="ruby"> query = subject.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="449"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = subject.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="450"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(order: __enum(&#39;lives_ASC&#39;)) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="450"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(order: __enum(&#39;lives_ASC&#39;)) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="451"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="451"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="452"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="452"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="453"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="453"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="454"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="454"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="455"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="455"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="456"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="456"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="457"> - <span class="hits">1</span> - - <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="457"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(query.to_gql).to eq &lt;&lt;~GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="458"> - - - <code class="ruby"> query {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="458"> + + + + + + <code class="ruby"> query {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="459"> - - - <code class="ruby"> catCollection(order: lives_ASC) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="459"> + + + + + + <code class="ruby"> catCollection(order: lives_ASC) {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="460"> - - - <code class="ruby"> items {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="460"> + + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="461"> - - - <code class="ruby"> name</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="461"> + + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="462"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="462"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="463"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="463"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="464"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="464"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="465"> - - - <code class="ruby"> GRAPHQL</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="465"> + + + + + + <code class="ruby"> GRAPHQL</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="466"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="466"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="467"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="467"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="468"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="468"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div> - <div class="source_table" id="a6d1c1911a021a8ab76d6b8afd1ba662a68cd017"> + <div class="source_table" id="b8ea11d4300da5a59748990f6c9de1ebb2b7117e"> <div class="header"> <h3>spec/lib/gqli/introspection_spec.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> - <div> - <b>215</b> relevant lines. + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>215</b> relevant lines. <span class="green"><b>215</b> lines covered</span> and <span class="red"><b>0</b> lines missed.</span> </div> + + + </div> - + <pre> <ol> - <li class="covered" data-hits="1" data-linenumber="1"> - <span class="hits">1</span> - - <code class="ruby">require &#39;spec_helper&#39;</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="1"> + <span class="hits">1</span> + + + + + <code class="ruby">require &#39;spec_helper&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="2"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="3"> - <span class="hits">1</span> - - <code class="ruby">describe GQLi::Introspection do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">describe GQLi::Introspection do</code> + </li> + </div> - <li class="covered" data-hits="22" data-linenumber="4"> - <span class="hits">22</span> - - <code class="ruby"> let(:dsl) { GQLi::DSL }</code> - </li> + <div> + <li class="covered" data-hits="22" data-linenumber="4"> + <span class="hits">22</span> + + + + + <code class="ruby"> let(:dsl) { GQLi::DSL }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> - - <code class="ruby"> let(:client) do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="5"> + <span class="hits">1</span> + + + + + <code class="ruby"> let(:client) do</code> + </li> + </div> - <li class="covered" data-hits="19" data-linenumber="6"> - <span class="hits">19</span> - - <code class="ruby"> vcr(&#39;client&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="19" data-linenumber="6"> + <span class="hits">19</span> + + + + + <code class="ruby"> vcr(&#39;client&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="19" data-linenumber="7"> - <span class="hits">19</span> - - <code class="ruby"> space_id = &#39;cfexampleapi&#39;</code> - </li> + <div> + <li class="covered" data-hits="19" data-linenumber="7"> + <span class="hits">19</span> + + + + + <code class="ruby"> space_id = &#39;cfexampleapi&#39;</code> + </li> + </div> - <li class="covered" data-hits="19" data-linenumber="8"> - <span class="hits">19</span> - - <code class="ruby"> token = &#39;b4c0n73n7fu1&#39;</code> - </li> + <div> + <li class="covered" data-hits="19" data-linenumber="8"> + <span class="hits">19</span> + + + + + <code class="ruby"> token = &#39;b4c0n73n7fu1&#39;</code> + </li> + </div> - <li class="covered" data-hits="19" data-linenumber="9"> - <span class="hits">19</span> - - <code class="ruby"> GQLi::Contentful.create(space_id, token)</code> - </li> + <div> + <li class="covered" data-hits="19" data-linenumber="9"> + <span class="hits">19</span> + + + + + <code class="ruby"> GQLi::Contentful.create(space_id, token)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="10"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="10"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="11"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="11"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="12"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="12"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="23" data-linenumber="13"> - <span class="hits">23</span> - - <code class="ruby"> subject { client.schema }</code> - </li> + <div> + <li class="covered" data-hits="23" data-linenumber="13"> + <span class="hits">23</span> + + + + + <code class="ruby"> subject { client.schema }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="14"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="15"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;introspection schema&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="15"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;introspection schema&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="16"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;queries the API for the schema&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="16"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;queries the API for the schema&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="17"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.types).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="17"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.types).not_to be_empty</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="18"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="18"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="19"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.types.map(&amp;:name)).to include(&#39;Cat&#39;, &#39;CatCollection&#39;, &#39;Human&#39;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="19"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.types.map(&amp;:name)).to include(&#39;Cat&#39;, &#39;CatCollection&#39;, &#39;Human&#39;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="20"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="21"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="22"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="22"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="23"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;validations&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;validations&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="24"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;valid query returns true&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="24"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;valid query returns true&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="25"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="25"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="26"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="26"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="27"> - - - <code class="ruby"> locale:&quot;en-US&quot;,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="27"> + + + + + + <code class="ruby"> locale:&quot;en-US&quot;,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="28"> - - - <code class="ruby"> limit: 1,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="28"> + + + + + + <code class="ruby"> limit: 1,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="29"> - - - <code class="ruby"> where: {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="29"> + + + + + + <code class="ruby"> where: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="30"> - - - <code class="ruby"> name:&quot;Nyan Cat&quot;,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="30"> + + + + + + <code class="ruby"> name:&quot;Nyan Cat&quot;,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="31"> - - - <code class="ruby"> OR: {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="31"> + + + + + + <code class="ruby"> OR: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="32"> - - - <code class="ruby"> name:&quot;Happy Cat&quot;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="32"> + + + + + + <code class="ruby"> name:&quot;Happy Cat&quot;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="33"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="33"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="34"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="34"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="35"> - - - <code class="ruby"> ) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="35"> + + + + + + <code class="ruby"> ) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="36"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="36"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="37"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="37"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="38"> - <span class="hits">1</span> - - <code class="ruby"> color</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="38"> + <span class="hits">1</span> + + + + + <code class="ruby"> color</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="39"> - <span class="hits">1</span> - - <code class="ruby"> birthday</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="39"> + <span class="hits">1</span> + + + + + <code class="ruby"> birthday</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="40"> - <span class="hits">1</span> - - <code class="ruby"> lives</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="40"> + <span class="hits">1</span> + + + + + <code class="ruby"> lives</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="41"> - <span class="hits">1</span> - - <code class="ruby"> bestFriend {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="41"> + <span class="hits">1</span> + + + + + <code class="ruby"> bestFriend {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="42"> - <span class="hits">1</span> - - <code class="ruby"> __on(&#39;Cat&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="42"> + <span class="hits">1</span> + + + + + <code class="ruby"> __on(&#39;Cat&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="43"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="43"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="44"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="44"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="45"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="45"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="46"> - <span class="hits">1</span> - - <code class="ruby"> image {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="46"> + <span class="hits">1</span> + + + + + <code class="ruby"> image {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="47"> - <span class="hits">1</span> - - <code class="ruby"> url</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="47"> + <span class="hits">1</span> + + + + + <code class="ruby"> url</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="48"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="48"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="49"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="49"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="50"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="50"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="51"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="51"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="52"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="52"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="53"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_truthy</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="53"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_truthy</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="54"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="54"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="55"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="55"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="56"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_truthy</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="56"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_truthy</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="57"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="57"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).to be_empty</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="58"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="58"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="59"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="59"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="60"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;wrong node returns false&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="60"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;wrong node returns false&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="61"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="61"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="62"> - <span class="hits">1</span> - - <code class="ruby"> foo</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="62"> + <span class="hits">1</span> + + + + + <code class="ruby"> foo</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="63"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="63"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="64"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="64"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="65"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="65"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="66"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="66"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="67"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="67"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="68"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="68"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="69"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="69"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="70"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Node type not found for &#39;foo&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="70"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Node type not found for &#39;foo&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="71"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="71"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="72"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="72"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="73"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;object node that doesnt have proper values returns false&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="73"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;object node that doesnt have proper values returns false&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="74"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="74"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="75"> - <span class="hits">1</span> - - <code class="ruby"> catCollection</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="75"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="76"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="76"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="77"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="77"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="78"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="78"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="79"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="79"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="80"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="80"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="81"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="81"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="82"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="82"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="83"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid object for node &#39;catCollection&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="83"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid object for node &#39;catCollection&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="84"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="84"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="85"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="85"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="86"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;object list node that doesnt have proper values returns false&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="86"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;object list node that doesnt have proper values returns false&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="87"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="87"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="88"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="88"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="89"> - <span class="hits">1</span> - - <code class="ruby"> items</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="89"> + <span class="hits">1</span> + + + + + <code class="ruby"> items</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="90"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="90"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="91"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="91"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="92"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="92"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="93"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="93"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="94"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="94"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="95"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="95"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="96"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="96"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="97"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="97"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="98"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid object for node &#39;items&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="98"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid object for node &#39;items&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="99"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="99"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="100"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="100"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="101"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;type matching on invalid type returns false&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="101"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;type matching on invalid type returns false&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="102"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="102"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="103"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="103"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="104"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="104"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="105"> - <span class="hits">1</span> - - <code class="ruby"> bestFriend {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="105"> + <span class="hits">1</span> + + + + + <code class="ruby"> bestFriend {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="106"> - <span class="hits">1</span> - - <code class="ruby"> __on(&#39;InvalidType&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="106"> + <span class="hits">1</span> + + + + + <code class="ruby"> __on(&#39;InvalidType&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="107"> - <span class="hits">1</span> - - <code class="ruby"> foo</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="107"> + <span class="hits">1</span> + + + + + <code class="ruby"> foo</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="108"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="108"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="109"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="109"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="110"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="110"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="111"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="111"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="112"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="112"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="113"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="113"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="114"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="114"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="115"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="115"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="116"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="116"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="117"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="117"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="118"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="118"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="119"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Match type &#39;InvalidType&#39; invalid&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="119"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Match type &#39;InvalidType&#39; invalid&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="120"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="120"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="121"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="121"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="122"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;invalid arguments return false&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="122"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;invalid arguments return false&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="123"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="123"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="124"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(invalidParam: 1) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="124"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(invalidParam: 1) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="125"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="125"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="126"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="126"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="127"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="127"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="128"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="128"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="129"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="129"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="130"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="130"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="131"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="131"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="132"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="132"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="133"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="133"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="134"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="134"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="135"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="135"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="136"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;invalidParam&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="136"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;invalidParam&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="137"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="137"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="138"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="138"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="139"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;invalid argument type returns false&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="139"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;invalid argument type returns false&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="140"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="140"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="141"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(limit: &#39;foo&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="141"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(limit: &#39;foo&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="142"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="142"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="143"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="143"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="144"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="144"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="145"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="145"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="146"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="146"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="147"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="147"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="148"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="148"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="149"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="149"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="150"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="150"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="151"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="151"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="152"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="152"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="153"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Value is &#39;String or ID&#39;, but should be &#39;Int&#39; for &#39;limit&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="153"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Value is &#39;String or ID&#39;, but should be &#39;Int&#39; for &#39;limit&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="154"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="154"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="155"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="155"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="156"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;enum values&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="156"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;enum values&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="157"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query with an enum as a filter and validations should not fail&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="157"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query with an enum as a filter and validations should not fail&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="158"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="158"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="159"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(order: __enum(&#39;lives_ASC&#39;)) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="159"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(order: __enum(&#39;lives_ASC&#39;)) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="160"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="160"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="161"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="161"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="162"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="162"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="163"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="163"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="164"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="164"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="165"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="165"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="166"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_truthy</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="166"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_truthy</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="167"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="167"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="168"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="168"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="169"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_truthy</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="169"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_truthy</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="170"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="170"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).to be_empty</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="171"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="171"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="172"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="172"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="173"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;fails when enum value is not provided properly&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="173"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;fails when enum value is not provided properly&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="174"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="174"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="175"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(order: &#39;lives_ASC&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="175"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(order: &#39;lives_ASC&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="176"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="176"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="177"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="177"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="178"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="178"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="179"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="179"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="180"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="180"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="181"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="181"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="182"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="182"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="183"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="183"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="184"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="184"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="185"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="185"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="186"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="186"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="187"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Value is &#39;String or ID&#39;, but should be &#39;Enum&#39; for &#39;order&#39;. Wrap the value with `__enum`.&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="187"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Value is &#39;String or ID&#39;, but should be &#39;Enum&#39; for &#39;order&#39;. Wrap the value with `__enum`.&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="188"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="188"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="189"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="189"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="190"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;fails when enum value is not provided properly and is not a string&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="190"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;fails when enum value is not provided properly and is not a string&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="191"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="191"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="192"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(order: 1) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="192"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(order: 1) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="193"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="193"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="194"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="194"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="195"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="195"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="196"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="196"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="197"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="197"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="198"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="198"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="199"> - <span class="hits">1</span> - - <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="199"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.valid?(query)).to be_falsey</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="200"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="200"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="201"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="201"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="202"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="202"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="203"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="203"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="204"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Value is &#39;Integer&#39;, but should be &#39;Enum&#39; for &#39;order&#39;. Wrap the value with `__enum`.&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="204"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Value is &#39;Integer&#39;, but should be &#39;Enum&#39; for &#39;order&#39;. Wrap the value with `__enum`.&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="205"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="205"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="206"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="206"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="207"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="207"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="208"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;aliases&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="208"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;aliases&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="209"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query with an alias&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="209"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query with an alias&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="210"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="210"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="211"> - <span class="hits">1</span> - - <code class="ruby"> __node(&#39;pinned: catCollection&#39;, where: {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="211"> + <span class="hits">1</span> + + + + + <code class="ruby"> __node(&#39;pinned: catCollection&#39;, where: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="212"> - - - <code class="ruby"> sys: { id_in: &#39;nyancat&#39; }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="212"> + + + + + + <code class="ruby"> sys: { id_in: &#39;nyancat&#39; }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="213"> - - - <code class="ruby"> }) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="213"> + + + + + + <code class="ruby"> }) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="214"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="214"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="215"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="215"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="216"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="216"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="217"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="217"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="218"> - <span class="hits">1</span> - - <code class="ruby"> __node(&#39;unpinned: catCollection&#39;, where: {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="218"> + <span class="hits">1</span> + + + + + <code class="ruby"> __node(&#39;unpinned: catCollection&#39;, where: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="219"> - - - <code class="ruby"> sys: { id_not_in: &#39;nyancat&#39; }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="219"> + + + + + + <code class="ruby"> sys: { id_not_in: &#39;nyancat&#39; }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="220"> - - - <code class="ruby"> }, limit: 4) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="220"> + + + + + + <code class="ruby"> }, limit: 4) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="221"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="221"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="222"> - <span class="hits">1</span> - - <code class="ruby"> name</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="222"> + <span class="hits">1</span> + + + + + <code class="ruby"> name</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="223"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="223"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="224"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="224"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="225"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="225"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="226"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="226"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="227"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="227"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="228"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_truthy</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="228"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_truthy</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="229"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="229"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).to be_empty</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="230"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="230"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="231"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="231"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="232"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="232"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="233"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;directives&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="233"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;directives&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="234"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;can create a query with a directive and validations should not fail&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="234"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;can create a query with a directive and validations should not fail&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="235"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="235"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="236"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="236"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="237"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="237"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="238"> - <span class="hits">1</span> - - <code class="ruby"> name(:@include =&gt; { if: true })</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="238"> + <span class="hits">1</span> + + + + + <code class="ruby"> name(:@include =&gt; { if: true })</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="239"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="239"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="240"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="240"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="241"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="241"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="242"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="242"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="243"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="243"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="244"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_truthy</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="244"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_truthy</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="245"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="245"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="246"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="246"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="247"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;unknown directives will fail&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="247"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;unknown directives will fail&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="248"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="248"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="249"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(:@unknownDirective =&gt; nil)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="249"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(:@unknownDirective =&gt; nil)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="250"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="250"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="251"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="251"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="252"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="252"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="253"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="253"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="254"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="254"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="255"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Directive unknown &#39;@unknownDirective&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="255"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Directive unknown &#39;@unknownDirective&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="256"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="256"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="257"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="257"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="258"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;known directive will fail if no arguments are passed&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="258"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;known directive will fail if no arguments are passed&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="259"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="259"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="260"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(:@include =&gt; nil)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="260"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(:@include =&gt; nil)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="261"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="261"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="262"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="262"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="263"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="263"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="264"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="264"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="265"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="265"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="266"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Missing arguments for directive &#39;@include&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="266"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Missing arguments for directive &#39;@include&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="267"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="267"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="268"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="268"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="269"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;known directive will fail if arguments are empty&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="269"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;known directive will fail if arguments are empty&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="270"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="270"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="271"> - <span class="hits">1</span> - - <code class="ruby"> catCollection(:@include =&gt; {})</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="271"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection(:@include =&gt; {})</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="272"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="272"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="273"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="273"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="274"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="274"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="275"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="275"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="276"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="276"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="277"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Missing arguments for directive &#39;@include&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="277"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Missing arguments for directive &#39;@include&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="278"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="278"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="279"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="279"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="280"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;known directive will fail if arguments is not if&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="280"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;known directive will fail if arguments is not if&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="281"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="281"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="282"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="282"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="283"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="283"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="284"> - <span class="hits">1</span> - - <code class="ruby"> name(:@include =&gt; { else: true })</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="284"> + <span class="hits">1</span> + + + + + <code class="ruby"> name(:@include =&gt; { else: true })</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="285"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="285"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="286"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="286"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="287"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="287"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="288"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="288"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="289"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="289"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="290"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="290"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="291"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="291"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="292"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;else&#39; for directive &#39;@include&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="292"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;else&#39; for directive &#39;@include&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="293"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="293"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="294"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="294"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="295"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;known directive will fail when if value is not boolean&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="295"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;known directive will fail when if value is not boolean&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="296"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="296"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="297"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="297"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="298"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="298"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="299"> - <span class="hits">1</span> - - <code class="ruby"> name(:@include =&gt; { if: 123 })</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="299"> + <span class="hits">1</span> + + + + + <code class="ruby"> name(:@include =&gt; { if: 123 })</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="300"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="300"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="301"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="301"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="302"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="302"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="303"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="303"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="304"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="304"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="305"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="305"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="306"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="306"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="307"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid value for &#39;if`, must be a boolean&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="307"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid value for &#39;if`, must be a boolean&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="308"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="308"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="309"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="309"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="310"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;known directive will fail when multiple arguments are passed&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="310"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;known directive will fail when multiple arguments are passed&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="311"> - <span class="hits">1</span> - - <code class="ruby"> query = dsl.query {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="311"> + <span class="hits">1</span> + + + + + <code class="ruby"> query = dsl.query {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="312"> - <span class="hits">1</span> - - <code class="ruby"> catCollection {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="312"> + <span class="hits">1</span> + + + + + <code class="ruby"> catCollection {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="313"> - <span class="hits">1</span> - - <code class="ruby"> items {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="313"> + <span class="hits">1</span> + + + + + <code class="ruby"> items {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="314"> - <span class="hits">1</span> - - <code class="ruby"> name(:@include =&gt; { if: true, else: false })</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="314"> + <span class="hits">1</span> + + + + + <code class="ruby"> name(:@include =&gt; { if: true, else: false })</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="315"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="315"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="316"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="316"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="317"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="317"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="318"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="318"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="319"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(query)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="319"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(query)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="320"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="320"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="321"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="321"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="322"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;else&#39; for directive &#39;@include&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="322"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;else&#39; for directive &#39;@include&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="323"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="323"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="324"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="324"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="325"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="325"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="326"> - <span class="hits">1</span> - - <code class="ruby"> describe &#39;mutations&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="326"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &#39;mutations&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="327"> - <span class="hits">1</span> - - <code class="ruby"> let(:client) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="327"> + <span class="hits">1</span> + + + + + <code class="ruby"> let(:client) {</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="328"> - <span class="hits">3</span> - - <code class="ruby"> vcr(&#39;mutation_client&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="328"> + <span class="hits">3</span> + + + + + <code class="ruby"> vcr(&#39;mutation_client&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="3" data-linenumber="329"> - <span class="hits">3</span> - - <code class="ruby"> GQLi::Github.create(ENV.fetch(&#39;GITHUB_READ_ONLY&#39;, &#39;&lt;ACCESS_TOKEN&gt;&#39;))</code> - </li> + <div> + <li class="covered" data-hits="3" data-linenumber="329"> + <span class="hits">3</span> + + + + + <code class="ruby"> GQLi::Github.create(ENV.fetch(&#39;GITHUB_READ_ONLY&#39;, &#39;&lt;ACCESS_TOKEN&gt;&#39;))</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="330"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="330"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="331"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="331"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="332"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="332"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="333"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;fails for unknown mutation&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="333"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;fails for unknown mutation&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="334"> - <span class="hits">1</span> - - <code class="ruby"> mutation = dsl.mutation {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="334"> + <span class="hits">1</span> + + + + + <code class="ruby"> mutation = dsl.mutation {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="335"> - <span class="hits">1</span> - - <code class="ruby"> foo(bar: &#39;baz&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="335"> + <span class="hits">1</span> + + + + + <code class="ruby"> foo(bar: &#39;baz&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="336"> - <span class="hits">1</span> - - <code class="ruby"> bar</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="336"> + <span class="hits">1</span> + + + + + <code class="ruby"> bar</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="337"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="337"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="338"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="338"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="339"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="339"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="340"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(mutation)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="340"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(mutation)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="341"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="341"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="342"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="342"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="343"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Node type not found for &#39;foo&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="343"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Node type not found for &#39;foo&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="344"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="344"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="345"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="345"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="346"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;fails for unknown arguments&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="346"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;fails for unknown arguments&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="347"> - <span class="hits">1</span> - - <code class="ruby"> mutation = dsl.mutation {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="347"> + <span class="hits">1</span> + + + + + <code class="ruby"> mutation = dsl.mutation {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="348"> - <span class="hits">1</span> - - <code class="ruby"> addComment(foo: &#39;bar&#39;) {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="348"> + <span class="hits">1</span> + + + + + <code class="ruby"> addComment(foo: &#39;bar&#39;) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="349"> - <span class="hits">1</span> - - <code class="ruby"> subject {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="349"> + <span class="hits">1</span> + + + + + <code class="ruby"> subject {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="350"> - <span class="hits">1</span> - - <code class="ruby"> id</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="350"> + <span class="hits">1</span> + + + + + <code class="ruby"> id</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="351"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="351"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="352"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="352"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="353"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="353"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="354"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="354"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="355"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(mutation)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="355"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(mutation)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="356"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_falsey</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="356"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_falsey</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="357"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).not_to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="357"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).not_to be_empty</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="358"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;foo&#39;&quot;)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="358"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors.map(&amp;:to_s)).to include(&quot;Invalid argument &#39;foo&#39;&quot;)</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="359"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="359"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="360"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="360"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="361"> - <span class="hits">1</span> - - <code class="ruby"> it &#39;true for valid mutation&#39; do</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="361"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &#39;true for valid mutation&#39; do</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="362"> - <span class="hits">1</span> - - <code class="ruby"> mutation = dsl.mutation {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="362"> + <span class="hits">1</span> + + + + + <code class="ruby"> mutation = dsl.mutation {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="363"> - <span class="hits">1</span> - - <code class="ruby"> addComment(input: {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="363"> + <span class="hits">1</span> + + + + + <code class="ruby"> addComment(input: {</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="364"> - - - <code class="ruby"> subjectId: &#39;some subject id&#39;,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="364"> + + + + + + <code class="ruby"> subjectId: &#39;some subject id&#39;,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="365"> - - - <code class="ruby"> body: &#39;some subject&#39;,</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="365"> + + + + + + <code class="ruby"> body: &#39;some subject&#39;,</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="366"> - - - <code class="ruby"> clientMutationId: &#39;some identifier&#39;</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="366"> + + + + + + <code class="ruby"> clientMutationId: &#39;some identifier&#39;</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="367"> - - - <code class="ruby"> }) {</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="367"> + + + + + + <code class="ruby"> }) {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="368"> - <span class="hits">1</span> - - <code class="ruby"> subject {</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="368"> + <span class="hits">1</span> + + + + + <code class="ruby"> subject {</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="369"> - <span class="hits">1</span> - - <code class="ruby"> id</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="369"> + <span class="hits">1</span> + + + + + <code class="ruby"> id</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="370"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="370"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="371"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="371"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="372"> - - - <code class="ruby"> }</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="372"> + + + + + + <code class="ruby"> }</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="373"> - - - <code class="ruby"></code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="373"> + + + + + + <code class="ruby"></code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="374"> - <span class="hits">1</span> - - <code class="ruby"> validation = subject.validate(mutation)</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="374"> + <span class="hits">1</span> + + + + + <code class="ruby"> validation = subject.validate(mutation)</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="375"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.valid?).to be_truthy</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="375"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.valid?).to be_truthy</code> + </li> + </div> - <li class="covered" data-hits="1" data-linenumber="376"> - <span class="hits">1</span> - - <code class="ruby"> expect(validation.errors).to be_empty</code> - </li> + <div> + <li class="covered" data-hits="1" data-linenumber="376"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(validation.errors).to be_empty</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="377"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="377"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="378"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="378"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="379"> - - - <code class="ruby"> end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="379"> + + + + + + <code class="ruby"> end</code> + </li> + </div> - <li class="never" data-hits="" data-linenumber="380"> - - - <code class="ruby">end</code> - </li> + <div> + <li class="never" data-hits="" data-linenumber="380"> + + + + + + <code class="ruby">end</code> + </li> + </div> + + </ol> + </pre> +</div> + + + <div class="source_table" id="e308ae0c091131b8856c9b6fd42e262820f8b2b9"> + <div class="header"> + <h3>spec/lib/gqli/response_spec.rb</h3> + <h4> + <span class="green"> + 100.0% +</span> + + lines covered + </h4> + + + + <div class="t-line-summary"> + <b>29</b> relevant lines. + <span class="green"><b>29</b> lines covered</span> and + <span class="red"><b>0</b> lines missed.</span> + </div> + + + + </div> + + <pre> + <ol> + + <div> + <li class="covered" data-hits="1" data-linenumber="1"> + <span class="hits">1</span> + + + + + <code class="ruby">require &#39;spec_helper&#39;</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="2"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="3"> + <span class="hits">1</span> + + + + + <code class="ruby">describe GQLi::Response do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="4" data-linenumber="4"> + <span class="hits">4</span> + + + + + <code class="ruby"> let(:errors) { nil }</code> + </li> + </div> + + <div> + <li class="covered" data-hits="6" data-linenumber="5"> + <span class="hits">6</span> + + + + + <code class="ruby"> let(:data) { {&quot;testkey&quot; =&gt; &quot;test val&quot;} }</code> + </li> + </div> + + <div> + <li class="covered" data-hits="6" data-linenumber="6"> + <span class="hits">6</span> + + + + + <code class="ruby"> let(:query) { double(:query) }</code> + </li> + </div> + + <div> + <li class="covered" data-hits="6" data-linenumber="7"> + <span class="hits">6</span> + + + + + <code class="ruby"> subject { described_class.new(data, errors, query) }</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="8"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="9"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &quot;#data&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="10"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &quot;returns correct data Hashie&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="11"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.data).to be_kind_of(Hashie::Mash)</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="12"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.data.testkey).to eq(data[&quot;testkey&quot;])</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="13"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="14"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="15"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="16"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &quot;#query&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="17"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &quot;returns correct query&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="18"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.query).to eq(query)</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="19"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="20"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="21"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="22"> + <span class="hits">1</span> + + + + + <code class="ruby"> describe &quot;#errors&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="23"> + <span class="hits">1</span> + + + + + <code class="ruby"> context &quot;array errors&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="2" data-linenumber="24"> + <span class="hits">2</span> + + + + + <code class="ruby"> let(:errors) { [{&quot;message&quot; =&gt; &quot;this is an error&quot;}] }</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="25"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="26"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &quot;converts errors to correct Hashie instances&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="27"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.errors).to be_kind_of(Array)</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="28"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.errors.length).to eq(1)</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="29"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.errors.first).to be_kind_of(Hashie::Mash)</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="30"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.errors.first.message).to eq(errors.first[&quot;message&quot;])</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="31"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="32"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="33"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="34"> + <span class="hits">1</span> + + + + + <code class="ruby"> context &quot;hash errors&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="2" data-linenumber="35"> + <span class="hits">2</span> + + + + + <code class="ruby"> let(:errors) { {&quot;message&quot; =&gt; &quot;this is an error&quot;} }</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="36"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="37"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &quot;converts errors to correct Hashie instances&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="38"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.errors).to be_kind_of(Hashie::Mash)</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="39"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.errors.message).to eq(errors[&quot;message&quot;])</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="40"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="41"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="42"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="43"> + <span class="hits">1</span> + + + + + <code class="ruby"> context &quot;nil errors&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="44"> + <span class="hits">1</span> + + + + + <code class="ruby"> it &quot;does not raise error and returns nil&quot; do</code> + </li> + </div> + + <div> + <li class="covered" data-hits="1" data-linenumber="45"> + <span class="hits">1</span> + + + + + <code class="ruby"> expect(subject.errors).to be(nil)</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="46"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="47"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="48"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="49"> + + + + + + <code class="ruby"> end</code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="50"> + + + + + + <code class="ruby"></code> + </li> + </div> + + <div> + <li class="never" data-hits="" data-linenumber="51"> + + + + + + <code class="ruby">end</code> + </li> + </div> </ol> </pre> </div>