Permalink
Commits on May 28, 2009
  1. Fixed 8.0 compatibility.

    theory committed May 28, 2009
    * Updated patches.
    * `RAISE` supports only variables for arguments, not expressions. But we can just use a format string instead. Should work on the other versions.
  2. Repair 8.1 compatibility.

    theory committed May 28, 2009
    * Update `compat/install_8.1.patch`.
    * Fix test functions in `sql/aretap.sql` that returned `NULL` instead of an empty array.
  3. Fixed compatibility on 8.2.

    theory committed May 28, 2009
    * "set" was reserved back then, I guess, so changed the test function fro `set()` to `pet()`.
    * Updated patches.
  4. Fix for 8.3 compatibility.

    theory committed May 28, 2009
    It's better to use dispatch to polymorphic functions, anyway.
Commits on May 27, 2009
  1. Updated `uninstall_pgtap.sql.in`.

    theory committed May 27, 2009
  2. Moved a couple of functions from the tables section to the functions …

    theory committed May 27, 2009
    …and deets sections of the docs.
  3. Added more function assertions.

    theory committed May 27, 2009
    * Added `is_aggregate()`.
    * Added `is_strict()`.
    * Added `volatility_is()`.
    * Renamed `function_is_definer()` to `is_definer()`. Still weighing whether to change it to `is_setuid()` or `is_secdef()`. `is_scurity_definer()` feelds too long.
  4. Added `function_is_definer()`.

    theory committed May 27, 2009
  5. Added `function_returns()`.

    theory committed May 27, 2009
    * Added `function_returns()`.
    * Refactored all of the function-related tests to use a new view, `tap_funky`, to make them all quite a bit simpler. There was too much redundant code!
    * Added some notes for some other function-testing assertions to add. I've already added the necessary code to `tap_funky` to make them work.
    * Eliminated some extra spaces in the test descriptions in `sql/functap.sql`.
  6. Added `function_lang_is()`.

    theory committed May 27, 2009
Commits on May 26, 2009
  1. Added `rule_is_on()`.

    theory committed May 26, 2009
  2. Added `hasnt_function()`.

    theory committed May 26, 2009
    * Added `hasnt_function()`.
    * Renamed `sql/cantap.sql` to `sql/functap.sql`.
    * Renamed `expected/cantap.out` to `expected/functap.out`.
  3. Moved the docs for `can_ok()`.

    theory committed May 26, 2009
    Also removed duplicate documentation for `hasnt_enum()`. Duh.
  4. Don't know how I managed to delete a bunch of stuff in that last comm…

    theory committed May 26, 2009
    …it, rather than properly modify it. I blame Emacs.
  5. Added `hasnt_index()`.

    theory committed May 26, 2009
    * Added `hasnt_index()`.
    * Restored `_have_index()`, turns out I needed it after all. It was broken,
      though, so I refactored it to do a proper index lookup. I added a bunch of
      new tests in the process of tracking down the problem.
    * Fixed a bunch of "not should" typos; they are supposed to be "should not".
Commits on May 25, 2009
  1. Documented `hasnt_enum()`.

    theory committed May 25, 2009
  2. Added `rule_is_instead()`.

    theory committed May 25, 2009
    Also documented the addition of `has_rule()` and `hasnt_rule()` in `Changes`.
    Next tasks:
    
    * Add `rule_is_on()`.
    * Add `hasnt_trigger()` (and any other missing `hasnt_*()` functions).
    * Update `uninstall_pgtap.sql.in`.
    * Test on all supported versions.
    * Release!
Commits on May 24, 2009
  1. Added rule testing assertion functions.

    theory committed May 24, 2009
    * Added `rules_are()`.
    * Added `has_rule()` and `hasnt_rule()`.
    * Added note that `indexes_are()` checks for indexes on tables visible in the
      search path if the `:schema` argument is omitted.
    * Fixed a typo in the docs that referred to `has_column()` when it meant
      `has_index()`.
  2. Added operator class assertion functions.

    theory committed May 24, 2009
    * Added `opclasses_are()`.
    * Added `has_opclass()` and `hasnt_opclass()`.
    * Fixed `make test` so that it uses `bbin/pg_prove`.
    * Fixed the `make` target for `bbin/pg_prove` so that it correctly sets the executable bit.
    * Removed redundant test number lines from diagnostic examples in `README.pgtap`.
    * Noted in the docs that `schemas_are()` ignores `information_schema`.
    * Changed "desc" to "description" in some comments.
Commits on May 23, 2009
  1. Added functions testing procedural languages.

    theory committed May 23, 2009
    * `languages_are()`
    * `has_language()`
    * `hasnt_language()`
    * `language_is_trusted()`
  2. Re-arranged `README.pgtap`.

    theory committed May 23, 2009
    * Added new headers and grouped schema assertion functions into subcategories.
    * Spell-checked the whole damned thing.
    * Fixed the "Conditional Tests" section, which I had never really properl done before (there was still some Test::More-ish stuff in there).
    * Fixed a few other minor formatting issues and the names of functions on the to-do list.
  3. Refactored `functions_are()` to use `_are()` like all the other `*_ar…

    theory committed May 23, 2009
    …e()` functions do.
  4. Simplified the diagnostic headers for the `*_are()` functions.

    theory committed May 23, 2009
    The name of the schema or search path ought to appear in the description, so there is no need to repeat it in the diagnostics.
  5. Added `indexes_are()`.

    theory committed May 23, 2009