node-postgres/test/test-helper.js
2010-09-28 23:32:00 -05:00

25 lines
463 B
JavaScript

sys = require('sys');
assert = require('assert');
Client = require(__dirname+"/../lib/").Client;
Parser = require(__dirname+"/../lib/").Parser;
test = function(name, action) {
for(var i = 0; i < test.tabout; i++) {
name = ' ' + name;
}
test.tabout += 2;
console.log(name);
action();
test.tabout -= 2;
};
test.tabout = 0;
stringToHex = function(string) {
};
hexToString = function(hexArray) {
return new Buffer(hexArray).toString('utf8');
}