Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dart-lang/mockito
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 974226e
Choose a base ref
...
head repository: dart-lang/mockito
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 451f756
Choose a head ref
  • 6 commits
  • 6 files changed
  • 4 contributors

Commits on Jun 30, 2023

  1. Require analyzer 5.12.0

    There was a recent change that added usage of the new `InvalidType` to
    Mockito codegen, but it only appears in analyzer 5.12.
    
    Fixes #656
    
    PiperOrigin-RevId: 544605763
    Ilya Yanok authored and copybara-github committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    9f40189 View commit details
    Browse the repository at this point in the history
  2. Add a note on only running codegen on files under test/ by default

    Fixes #631
    
    Fixes #550
    
    PiperOrigin-RevId: 544670948
    Ilya Yanok authored and copybara-github committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    a926a63 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2023

  1. Bump actions/checkout from 3.5.2 to 3.5.3 (#669)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
    <details>
    <summary>Release notes</summary>
    <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p>
    <blockquote>
    <h2>v3.5.3</h2>
    <h2>What's Changed</h2>
    <ul>
    <li>Fix: Checkout Issue in self hosted runner due to faulty submodule check-ins by <a href="https://github.com/megamanics"><code>@�megamanics</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1196">actions/checkout#1196</a></li>
    <li>Fix typos found by codespell by <a href="https://github.com/DimitriPapadopoulos"><code>@�DimitriPapadopoulos</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1287">actions/checkout#1287</a></li>
    <li>Add support for sparse checkouts by <a href="https://github.com/dscho"><code>@�dscho</code></a> and <a href="https://github.com/dfdez"><code>@�dfdez</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1369">actions/checkout#1369</a></li>
    <li>Release v3.5.3 by <a href="https://github.com/TingluoHuang"><code>@�TingluoHuang</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1376">actions/checkout#1376</a></li>
    </ul>
    <h2>New Contributors</h2>
    <ul>
    <li><a href="https://github.com/megamanics"><code>@�megamanics</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1196">actions/checkout#1196</a></li>
    <li><a href="https://github.com/DimitriPapadopoulos"><code>@�DimitriPapadopoulos</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1287">actions/checkout#1287</a></li>
    <li><a href="https://github.com/dfdez"><code>@�dfdez</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1369">actions/checkout#1369</a></li>
    </ul>
    <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v3...v3.5.3">https://github.com/actions/checkout/compare/v3...v3.5.3</a></p>
    </blockquote>
    </details>
    <details>
    <summary>Changelog</summary>
    <p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p>
    <blockquote>
    <h1>Changelog</h1>
    <h2>v3.5.3</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1196">Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1287">Fix typos found by codespell</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1369">Add support for sparse checkouts</a></li>
    </ul>
    <h2>v3.5.2</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1289">Fix api endpoint for GHES</a></li>
    </ul>
    <h2>v3.5.1</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1246">Fix slow checkout on Windows</a></li>
    </ul>
    <h2>v3.5.0</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1237">Add new public key for known_hosts</a></li>
    </ul>
    <h2>v3.4.0</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1209">Upgrade codeql actions to v2</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1210">Upgrade dependencies</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1225">Upgrade <code>@�actions/io</code></a></li>
    </ul>
    <h2>v3.3.0</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1045">Implement branch list using callbacks from exec function</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1050">Add in explicit reference to private checkout options</a></li>
    <li>[Fix comment typos (that got added in <a href="https://redirect.github.com/actions/checkout/issues/770">#770</a>)](<a href="https://redirect.github.com/actions/checkout/pull/1057">actions/checkout#1057</a>)</li>
    </ul>
    <h2>v3.2.0</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/942">Add GitHub Action to perform release</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/967">Fix status badge</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1002">Replace datadog/squid with ubuntu/squid Docker image</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/964">Wrap pipeline commands for submoduleForeach in quotes</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1029">Update <code>@�actions/io</code> to 1.1.2</a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/1039">Upgrading version to 3.2.0</a></li>
    </ul>
    <h2>v3.1.0</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/939">Use <code>@�actions/core</code> <code>saveState</code> and <code>getState</code></a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/922">Add <code>github-server-url</code> input</a></li>
    </ul>
    <h2>v3.0.2</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/770">Add input <code>set-safe-directory</code></a></li>
    </ul>
    <h2>v3.0.1</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/762">Fixed an issue where checkout failed to run in container jobs due to the new git setting <code>safe.directory</code></a></li>
    <li><a href="https://redirect.github.com/actions/checkout/pull/744">Bumped various npm package versions</a></li>
    </ul>
    <h2>v3.0.0</h2>
    <ul>
    <li><a href="https://redirect.github.com/actions/checkout/pull/689">Update to node 16</a></li>
    </ul>
    <h2>v2.3.1</h2>
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a href="https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9"><code>c85c95e</code></a> Release v3.5.3 (<a href="https://redirect.github.com/actions/checkout/issues/1376">#1376</a>)</li>
    <li><a href="https://github.com/actions/checkout/commit/d106d4669b3bfcb17f11f83f98e1cab478e9f635"><code>d106d46</code></a> Add support for sparse checkouts (<a href="https://redirect.github.com/actions/checkout/issues/1369">#1369</a>)</li>
    <li><a href="https://github.com/actions/checkout/commit/f095bcc56b7c2baf48f3ac70d6d6782f4f553222"><code>f095bcc</code></a> Fix typos found by codespell (<a href="https://redirect.github.com/actions/checkout/issues/1287">#1287</a>)</li>
    <li><a href="https://github.com/actions/checkout/commit/47fbe2df0ad0e27efb67a70beac3555f192b062f"><code>47fbe2d</code></a> Fix: Checkout fail in self-hosted runners when faulty submodule are checked-i...</li>
    <li>See full diff in <a href="https://github.com/actions/checkout/compare/8e5e7e5ab8b370d6c329ec480221332ada57f0ab...c85c95e3d7251135ab7dc9ce3241c5835cc595a9">compare view</a></li>
    </ul>
    </details>
    <br />
    
    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=3.5.2&new-version=3.5.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - `@dependabot rebase` will rebase this PR
    - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    - `@dependabot merge` will merge this PR after your CI passes on it
    - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    - `@dependabot reopen` will reopen this PR if it is closed
    - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    
    </details>
    dependabot[bot] committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    93b69ef View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Use FunctionTypedElement.type while generating method overrides

    Turns out `FunctionTypedElement.typeParameters` could be inconsistent
    for `MethodMember`s returned by `InheritanceManager3.getMember2`.
    `FunctionTypedElement.type.typeFormals` seem to be always good, but
    we have to also use `type.parameters` and `type.returnType` instead
    of just `parameters` and `returnType` in this case.
    
    Fixes #658
    
    PiperOrigin-RevId: 545681214
    Ilya Yanok authored and copybara-github committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    60e619a View commit details
    Browse the repository at this point in the history
  2. Rollback of "Use FunctionTypedElement.type while generating method …

    …overrides"
    
    PiperOrigin-RevId: 545713598
    Googler authored and copybara-github committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    c13496c View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Add example of mocking callbacks

    Towards #62
    
    Update the README and example usage with an example of writing a class to hold
    the callback signatures and mocking it with codegen. Demonstrate that the
    callbacks can be stubbed after being torn off.
    
    PiperOrigin-RevId: 546817751
    natebosch authored and copybara-github committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    451f756 View commit details
    Browse the repository at this point in the history
Loading