MCPcopy Create free account
hub / github.com/nodejs/nan / TlsTest

Method TlsTest

test/cpp/threadlocal.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17class TlsTest : public AsyncWorker {
18 public:
19 explicit TlsTest(Tap *t) : AsyncWorker(NULL), t(t), i(0) {
20 t->plan(7);
21 t->ok(_(0 == nauv_key_create(&tls_key)));
22 t->ok(_(NULL == nauv_key_get(&tls_key)));
23 nauv_key_set(&tls_key, this);
24 t->ok(_(this == nauv_key_get(&tls_key)));
25 }
26 void Execute() {
27 ok(_(NULL == nauv_key_get(&tls_key)));
28 nauv_key_set(&tls_key, &i);

Callers

nothing calls this directly

Calls 5

nauv_key_createFunction · 0.85
nauv_key_getFunction · 0.85
nauv_key_setFunction · 0.85
planMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected