Re: patch: General purpose utility functions used by the JSON data type - Mailing list pgsql-hackers

From Mike Fowler
Subject Re: patch: General purpose utility functions used by the JSON data type
Date
Msg-id 4C651646.70207@mlfowler.com
Whole thread Raw
In response to patch: General purpose utility functions used by the JSON data type  (Joseph Adams <joeyadams3.14159@gmail.com>)
List pgsql-hackers
On 13/08/10 10:45, Joseph Adams wrote:
> This patch doesn't include tests .  How would I go about writing them?
>
> I have made the JSON data type built-in, and I will post that patch
> shortly (it depends on this one).  The built-in JSON data type uses
> all of these utility functions, and the tests for the JSON data type
> pass.
>    

Joseph,

Most existing data types have a regression SQL script in 
src/test/regress/sql. Using one of them as an example to draw some 
inspiration from, you should be able to write a 'json.sql' script that 
exercises the data type and it's supporting functions. Full instructions 
can be found at http://wiki.postgresql.org/wiki/Regression_test_authoring

Regards,

-- 
Mike Fowler
Registered Linux user: 379787



pgsql-hackers by date:

Previous
From: Joseph Adams
Date:
Subject: patch: General purpose utility functions used by the JSON data type
Next
From: Joseph Adams
Date:
Subject: Re: patch: Add JSON datatype to PostgreSQL (GSoC, WIP)