1// Flags: --expose-internals
2'use strict';
3
4require('../common');
5const assert = require('assert');
6
7const {
8  DTRACE_HTTP_CLIENT_REQUEST,
9  DTRACE_HTTP_CLIENT_RESPONSE,
10  DTRACE_HTTP_SERVER_REQUEST,
11  DTRACE_HTTP_SERVER_RESPONSE,
12  DTRACE_NET_SERVER_CONNECTION,
13  DTRACE_NET_STREAM_END
14} = require('internal/dtrace');
15
16// We're just testing to make sure these are always defined and
17// callable. We don't actually test their function here.
18
19assert.strictEqual(typeof DTRACE_HTTP_CLIENT_REQUEST, 'function');
20assert.strictEqual(typeof DTRACE_HTTP_CLIENT_RESPONSE, 'function');
21assert.strictEqual(typeof DTRACE_HTTP_SERVER_REQUEST, 'function');
22assert.strictEqual(typeof DTRACE_HTTP_SERVER_RESPONSE, 'function');
23assert.strictEqual(typeof DTRACE_NET_SERVER_CONNECTION, 'function');
24assert.strictEqual(typeof DTRACE_NET_STREAM_END, 'function');
25