Closed vasu5235 closed 2 years ago
Is it possible to run unit tests on *Oracle ProC code**?
If it is possible,
.pc
.c
I tried googling this with no results.
For example, creating a simple database connection and returning via cn.pc file as follows:
cn.pc
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<sqlca.h> char *p="username/password@SID"; void main() { EXEC SQL CONNECT :p; if(sqlca.sqlcode==0) { printf("Database connection successful to %s",p); } else { printf("\n connection to %s failed ",p); } }
How should a test_cn.cfile be coded for this?
test_cn.c
Is it possible to run unit tests on *Oracle ProC code**?
If it is possible,
.pc
file or the compiled.c
file.I tried googling this with no results.
For example, creating a simple database connection and returning via
cn.pc
file as follows:How should a
test_cn.c
file be coded for this?