Skip to content

Commit

Permalink
Deployed e307bc6 to v3.0 with MkDocs 1.6.1 and mike 2.2.0.dev0
Browse files Browse the repository at this point in the history
  • Loading branch information
vektra-bot committed Jan 20, 2025
1 parent 70c47be commit 6fc365f
Show file tree
Hide file tree
Showing 24 changed files with 2,141 additions and 54 deletions.
96 changes: 92 additions & 4 deletions v3.0/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


<link rel="icon" href="/mockery/latest/assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.49+insiders-4.53.14">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.50+insiders-4.53.15">



Expand Down Expand Up @@ -601,8 +601,6 @@








Expand All @@ -624,7 +622,7 @@
<span class="md-ellipsis">


Notes
Features



Expand All @@ -640,6 +638,96 @@
<span class="md-nav__icon md-icon"></span>


Features


</label>
<ul class="md-nav__list" data-md-scrollfix>







<li class="md-nav__item">
<a href="/mockery/latest/replace-type/" class="md-nav__link">


<span class="md-ellipsis">


replace-type



</span>



</a>
</li>




</ul>
</nav>

</li>
























<li class="md-nav__item md-nav__item--section md-nav__item--nested">



<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >


<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="">


<span class="md-ellipsis">


Notes



</span>



<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5">
<span class="md-nav__icon md-icon"></span>


Notes


Expand Down
Binary file modified v3.0/assets/images/social/configuration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/faq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/installation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added v3.0/assets/images/social/replace-type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/running.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/template-mockery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/template-moq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified v3.0/assets/images/social/v3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
204 changes: 200 additions & 4 deletions v3.0/configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


<link rel="icon" href="../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.49+insiders-4.53.14">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.50+insiders-4.53.15">



Expand Down Expand Up @@ -495,6 +495,51 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#config-templates" class="md-nav__link">
<span class="md-ellipsis">

<span class="md-typeset">
Config Templates
</span>

</span>
</a>

<nav class="md-nav" aria-label="Config Templates">
<ul class="md-nav__list">

<li class="md-nav__item">
<a href="#variables" class="md-nav__link">
<span class="md-ellipsis">

<span class="md-typeset">
Variables
</span>

</span>
</a>

</li>

<li class="md-nav__item">
<a href="#functions" class="md-nav__link">
<span class="md-ellipsis">

<span class="md-typeset">
Functions
</span>

</span>
</a>

</li>

</ul>
</nav>

</li>

<li class="md-nav__item">
Expand Down Expand Up @@ -721,8 +766,6 @@








Expand All @@ -744,7 +787,7 @@
<span class="md-ellipsis">


Notes
Features



Expand All @@ -760,6 +803,96 @@
<span class="md-nav__icon md-icon"></span>


Features


</label>
<ul class="md-nav__list" data-md-scrollfix>







<li class="md-nav__item">
<a href="../replace-type/" class="md-nav__link">


<span class="md-ellipsis">


replace-type



</span>



</a>
</li>




</ul>
</nav>

</li>
























<li class="md-nav__item md-nav__item--section md-nav__item--nested">



<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >


<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="">


<span class="md-ellipsis">


Notes



</span>



<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5">
<span class="md-nav__icon md-icon"></span>


Notes


Expand Down Expand Up @@ -864,6 +997,51 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#config-templates" class="md-nav__link">
<span class="md-ellipsis">

<span class="md-typeset">
Config Templates
</span>

</span>
</a>

<nav class="md-nav" aria-label="Config Templates">
<ul class="md-nav__list">

<li class="md-nav__item">
<a href="#variables" class="md-nav__link">
<span class="md-ellipsis">

<span class="md-typeset">
Variables
</span>

</span>
</a>

</li>

<li class="md-nav__item">
<a href="#functions" class="md-nav__link">
<span class="md-ellipsis">

<span class="md-typeset">
Functions
</span>

</span>
</a>

</li>

</ul>
</nav>

</li>

<li class="md-nav__item">
Expand Down Expand Up @@ -1019,6 +1197,12 @@ <h2 id="parameter-descriptions">Parameter Descriptions<a class="headerlink" href
<td>The name of the file the mock will reside in.</td>
</tr>
<tr>
<td><code>force-file-write</code></td>
<td><span class="twemoji"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5c-11.3-13.6-31.5-15.4-45.1-4.1S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306l135.4 162.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256z"/></svg></span></td>
<td><code class="highlight"><span class="l l-Scalar l-Scalar-Plain">false</span></code></td>
<td>When set to <code class="highlight"><span class="nt">force-file-write</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span></code>, mockery will forcibly overwrite any existing files.</td>
</tr>
<tr>
<td><code>formatter</code></td>
<td><span class="twemoji"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5c-11.3-13.6-31.5-15.4-45.1-4.1S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306l135.4 162.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256z"/></svg></span></td>
<td><code class="highlight"><span class="s">&quot;goimports&quot;</span></code></td>
Expand Down Expand Up @@ -1067,6 +1251,12 @@ <h2 id="parameter-descriptions">Parameter Descriptions<a class="headerlink" href
<td>When set to <code>true</code> on a particular package, mockery will recursively search for all sub-packages and inject those packages into the config map.</td>
</tr>
<tr>
<td><a href="../replace-type/"><code>replace-type</code></a></td>
<td><span class="twemoji"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5c-11.3-13.6-31.5-15.4-45.1-4.1S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306l135.4 162.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256z"/></svg></span></td>
<td><code class="highlight"><span class="p p-Indicator">{}</span></code></td>
<td>Use this parameter to specify type replacements.</td>
</tr>
<tr>
<td><code>tags</code></td>
<td><span class="twemoji"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5c-11.3-13.6-31.5-15.4-45.1-4.1S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306l135.4 162.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256z"/></svg></span></td>
<td><code class="highlight"><span class="s">&quot;&quot;</span></code></td>
Expand All @@ -1086,6 +1276,12 @@ <h2 id="parameter-descriptions">Parameter Descriptions<a class="headerlink" href
</tr>
</tbody>
</table>
<h2 id="config-templates">Config Templates<a class="headerlink" href="#config-templates" title="Permanent link">&para;</a></h2>
<p>Parameters marked as being templated have access to a number of template variables and functions.</p>
<h3 id="variables">Variables<a class="headerlink" href="#variables" title="Permanent link">&para;</a></h3>
<p>The variables provided are specified in the <a href="https://pkg.go.dev/github.com/vektra/mockery/v3/template#ConfigData"><code>ConfigData</code></a> struct.</p>
<h3 id="functions">Functions<a class="headerlink" href="#functions" title="Permanent link">&para;</a></h3>
<p>All of the functions defined in <a href="https://pkg.go.dev/github.com/vektra/mockery/v3/template#pkg-variables"><code>StringManipulationFuncs</code></a> are available to templated parameters.</p>
<h2 id="merging-precedence">Merging Precedence<a class="headerlink" href="#merging-precedence" title="Permanent link">&para;</a></h2>
<p>The configuration applied to a specific mocked interface is merged according to the following precedence (in decreasing priority):</p>
<ol>
Expand Down
Loading

0 comments on commit 6fc365f

Please sign in to comment.