From: Wolfgang Bumiller <w.bumiller@proxmox.com>
To: "Max R. Carrara" <m.carrara@proxmox.com>
Cc: pve-devel@lists.proxmox.com
Subject: partially-applied: [PATCH perlmod 4/4] testlib: run perltidy
Date: Thu, 23 Jul 2026 09:55:23 +0200 [thread overview]
Message-ID: <h3e7xvgiihid6aukb55mwlzklj3h7badvfospn3d3iqskvm2zx@sijx5qqiq7ih> (raw)
In-Reply-To: <20260720152541.524463-5-m.carrara@proxmox.com>
applied this one as well, thanks
On Mon, Jul 20, 2026 at 05:25:40PM +0200, Max R. Carrara wrote:
> Signed-off-by: Max R. Carrara <m.carrara@proxmox.com>
> ---
> testlib-tests/01-hello.t | 24 ++++++++++++++++++++----
> 1 file changed, 20 insertions(+), 4 deletions(-)
>
> diff --git a/testlib-tests/01-hello.t b/testlib-tests/01-hello.t
> index 5c757ea..9770525 100644
> --- a/testlib-tests/01-hello.t
> +++ b/testlib-tests/01-hello.t
> @@ -12,13 +12,29 @@ is($x, 17, "first multi_return value should be 17");
> is($y, 32, "second multi_return value should be 32");
>
> my $param = { a => 1 };
> -is(TestLib::Hello::opt_string($param->{x}), "Called with None.", "non-existent element passed to Option<String>");
> +is(
> + TestLib::Hello::opt_string($param->{x}),
> + "Called with None.",
> + "non-existent element passed to Option<String>",
> +);
> ok(!exists($param->{x}), "param->{x} was not auto-vivified");
> -is(TestLib::Hello::opt_str($param->{x}), "Called with None.", "non-existent element passed to Option<&str>");
> +is(
> + TestLib::Hello::opt_str($param->{x}),
> + "Called with None.",
> + "non-existent element passed to Option<&str>",
> +);
> ok(!exists($param->{x}), "param->{x} was not auto-vivified (2)");
>
> -is(TestLib::Hello::trailing_optional(1, 99), '1, Some(99)', 'passing value for trailing optional parameter');
> -is(TestLib::Hello::trailing_optional(2, undef), '2, None', 'passing undef for trailing optional parameter');
> +is(
> + TestLib::Hello::trailing_optional(1, 99),
> + '1, Some(99)',
> + 'passing value for trailing optional parameter',
> +);
> +is(
> + TestLib::Hello::trailing_optional(2, undef),
> + '2, None',
> + 'passing undef for trailing optional parameter',
> +);
> is(TestLib::Hello::trailing_optional(3), '3, None', 'skipping trailing optional parameter');
>
> is(
> --
> 2.47.3
>
>
>
>
>
--
prev parent reply other threads:[~2026-07-23 7:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 15:25 [PATCH perlmod 0/4] perlmod: add #[hash] parameter Max R. Carrara
2026-07-20 15:25 ` [PATCH perlmod 1/4] ffi: implement ExactSizeIterator for StackIter Max R. Carrara
2026-07-20 15:25 ` [PATCH perlmod 2/4] value: implement serde::de::IntoDeserializer on Value Max R. Carrara
2026-07-23 7:34 ` Wolfgang Bumiller
2026-07-23 7:50 ` partially-applied: " Wolfgang Bumiller
2026-07-20 15:25 ` [PATCH perlmod 3/4] perlmod, macro: add #[hash] parameter Max R. Carrara
2026-07-23 7:54 ` Wolfgang Bumiller
2026-07-20 15:25 ` [PATCH perlmod 4/4] testlib: run perltidy Max R. Carrara
2026-07-23 7:55 ` Wolfgang Bumiller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=h3e7xvgiihid6aukb55mwlzklj3h7badvfospn3d3iqskvm2zx@sijx5qqiq7ih \
--to=w.bumiller@proxmox.com \
--cc=m.carrara@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox