-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added
name, name
composite assertion functions
Add `has_composite(name, name)` and `hasnt_composite(name, name)`, which allow users to test composites without having to write descriptions. Resolves #234.
- Loading branch information
Showing
9 changed files
with
905 additions
and
833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- sql/pgtap.sql | ||
+++ sql/pgtap.sql | ||
@@ -10232,136 +10232,6 @@ | ||
@@ -10266,136 +10266,6 @@ | ||
); | ||
$$ LANGUAGE sql; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
-- TBD | ||
-- has_composite( schema, type ) | ||
CREATE OR REPLACE FUNCTION has_composite ( NAME, NAME ) | ||
RETURNS TEXT AS $$ | ||
SELECT has_composite( | ||
$1, $2, | ||
'Composite type ' || quote_ident($1) || '.' || quote_ident($2) || ' should exist' | ||
); | ||
$$ LANGUAGE SQL; | ||
|
||
-- hasnt_composite( schema, type ) | ||
CREATE OR REPLACE FUNCTION hasnt_composite ( NAME, NAME ) | ||
RETURNS TEXT AS $$ | ||
SELECT hasnt_composite( | ||
$1, $2, | ||
'Composite type ' || quote_ident($1) || '.' || quote_ident($2) || ' should not exist' | ||
); | ||
$$ LANGUAGE SQL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters