Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJhXJ-0004bm-EN for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Feb 2022 20:01:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nJhXH-0000mx-WE for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Feb 2022 20:01:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJhXH-0000mo-N6 for pgsql-hackers@lists.postgresql.org; Mon, 14 Feb 2022 20:01:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJhXF-00050E-3J for pgsql-hackers@postgresql.org; Mon, 14 Feb 2022 20:01:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21EK14N42920744; Mon, 14 Feb 2022 15:01:04 -0500 From: Tom Lane To: Matheus Alcantara cc: "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Add tests for psql tab completion In-reply-to: References: Comments: In-reply-to Matheus Alcantara message dated "Sat, 12 Feb 2022 20:17:29 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2920742.1644868864.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Feb 2022 15:01:04 -0500 Message-ID: <2920743.1644868864@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Matheus Alcantara writes: > I'm attaching a patch that add some new test cases for tab completion of= psql. What exactly is the motivation for these particular tests? I believe that most of tab-complete.c is already covered, outside of the giant if-else chain at the heart of psql_completion(). It's hard to summon interest in trying to cover every branch of that chain; but if we're to add coverage of just a few more, which ones and why? The ones you've chosen to hit in this patch don't seem especially interesting. regards, tom lane