MCPcopy Create free account
hub / github.com/ElementsProject/lightning / tmp_dsn

Function tmp_dsn

plugins/bkpr/test/run-recorder.c:240–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238/* AUTOGENERATED MOCKS END */
239
240static char *tmp_dsn(const tal_t *ctx)
241{
242 char *dsn, *filename;
243 int fd = tmpdir_mkstemp(ctx, "lacct-db-XXXXXX", &filename);
244 if (fd == -1)
245 return NULL;
246 close(fd);
247
248 dsn = tal_fmt(ctx, "sqlite3://%s", filename);
249 tal_free(filename);
250
251 return dsn;
252}
253
254static bool accountseq(struct account *a1, struct account *a2)
255{

Callers 8

test_channel_rebalancesFunction · 0.70
test_channel_event_crudFunction · 0.70
test_chain_event_crudFunction · 0.70
test_account_balancesFunction · 0.70
test_account_crudFunction · 0.70

Calls 2

tmpdir_mkstempFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected