Skip to content

Commit

Permalink
add some tests for ejson
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyht committed Apr 8, 2019
1 parent e75a3a5 commit df5cd61
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 808 deletions.
3 changes: 3 additions & 0 deletions src/libs/etools/eutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ static inline u64 __hrtime_ns(clocktype_t type)
i64 eutils_nowns() { return __hrtime_ns(_CLOCK_PRECISE) ; }
i64 eutils_nowms() { return __hrtime_ns(_CLOCK_FAST ) / 1000000; }

i64 nowns() { return __hrtime_ns(_CLOCK_PRECISE) ; }
i64 nowms() { return __hrtime_ns(_CLOCK_FAST ) / 1000000; }

int ll2str(i64 value, char *s)
{
char *p, aux;
Expand Down
3 changes: 3 additions & 0 deletions src/libs/etools/eutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ int ull2str(u64 v, char *s);
i64 eutils_nowns();
i64 eutils_nowms();

i64 nowms();
i64 nowns();

int eutils_rand();

int eutils_nprocs();
Expand Down
110 changes: 0 additions & 110 deletions src/libs/etools/testing/ejson/1_basic_test.c

This file was deleted.

110 changes: 0 additions & 110 deletions src/libs/etools/testing/ejson/basic_test.c

This file was deleted.

Loading

0 comments on commit df5cd61

Please sign in to comment.