From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9DF9D15817D for ; Fri, 21 Jun 2024 13:14:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93F45E2A3E; Fri, 21 Jun 2024 13:14:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 185ABE2A3E for ; Fri, 21 Jun 2024 13:14:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7781335D0F for ; Fri, 21 Jun 2024 13:14:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 40F2F1D46 for ; Fri, 21 Jun 2024 13:14:14 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1718086319.875d349103daa320f3a6cc155bd26103adec89de.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: test-functions X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 875d349103daa320f3a6cc155bd26103adec89de X-VCS-Branch: master Date: Fri, 21 Jun 2024 13:14:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9c9e7e6d-29cb-4c74-bb98-55461d8fcead X-Archives-Hash: d6aa6f7cb0996193bc7e06a96941afa7 commit: 875d349103daa320f3a6cc155bd26103adec89de Author: Kerin Millar plushkava net> AuthorDate: Sun Jun 2 17:33:55 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 11 06:11:59 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=875d3491 test-functions: Clean up the indentation Signed-off-by: Kerin Millar plushkava.net> test-functions | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/test-functions b/test-functions index e0bd127..8ff6380 100755 --- a/test-functions +++ b/test-functions @@ -304,13 +304,13 @@ test_is_identifier() { eq 0 Z_a \ eq 0 Z_Z - callback() { - shift - test_description="is_identifier $(_print_args "$@")" - is_identifier "$@" - } + callback() { + shift + test_description="is_identifier $(_print_args "$@")" + is_identifier "$@" + } - iterate_tests 3 "$@" + iterate_tests 3 "$@" } test_is_int() { @@ -329,13 +329,13 @@ test_is_int() { eq 0 -1 \ eq 0 123456789 - callback() { - shift - test_description="is_int $(_print_args "$@")" - is_int "$@" - } + callback() { + shift + test_description="is_int $(_print_args "$@")" + is_int "$@" + } - iterate_tests 3 "$@" + iterate_tests 3 "$@" } test_is_visible() { @@ -349,13 +349,13 @@ test_is_visible() { eq 0 "$(printf '\t.\t')" \ eq 0 "$(printf '\a.\a')" - callback() { - shift - test_description="_is_visible $(_print_args "$@")" - _is_visible "$@" - } + callback() { + shift + test_description="_is_visible $(_print_args "$@")" + _is_visible "$@" + } - iterate_tests 3 "$@" + iterate_tests 3 "$@" } test_yesno() { @@ -385,16 +385,16 @@ test_yesno() { ge 1 not-a-valid-nameref \ ge 1 '_"; set -- yes # code injection' - # shellcheck disable=2034 - truthful_nameref=yes + # shellcheck disable=2034 + truthful_nameref=yes - callback() { - shift - test_description="yesno $(_print_args "$@")" - yesno "$@" - } + callback() { + shift + test_description="yesno $(_print_args "$@")" + yesno "$@" + } - iterate_tests 3 "$@" + iterate_tests 3 "$@" } iterate_tests() {