Re: [HACKERS] Thoughts on unit testing?

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: [HACKERS] Thoughts on unit testing?
Дата
Msg-id CAEepm=0tAVcSRth8sCcVNf8pwgYaGop1qLPSGDgP4XTZEKzASQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Thoughts on unit testing?  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
On Fri, Aug 11, 2017 at 11:13 AM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> Just create a .test.c file and type "TEST(my_math,
> factorial) { EXPECT_EQ(6, factorial(3)); }" ...

Of course that would really need to #include "something/test_macros.h"
and "something/factorial.h", and EXPECT_EQ probably doesn't make much
sense in C, but you get the point: very low barrier to use it.

-- 
Thomas Munro
http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: AP
Дата:
Сообщение: Re: [HACKERS] pgsql 10: hash indexes testing
Следующее
От: Noah Misch
Дата:
Сообщение: Re: [HACKERS] [BUGS] Replication to Postgres 10 on Windows is broken