• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

node-opcua / node-opcua / 23974043205

04 Apr 2026 07:17AM UTC coverage: 92.589% (+0.01%) from 92.576%
23974043205

push

github

erossignon
chore: fix Mocha.Suite.settimeout misused

18408 of 21832 branches covered (84.32%)

161708 of 174651 relevant lines covered (92.59%)

461089.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

76.92
/packages/node-opcua-server/source/factory.ts
1
/**
2✔
2
 * @module node-opcua-server
2✔
3
 */
2✔
4

2✔
5
import { assert } from "node-opcua-assert";
2✔
6
import { ExtensionObject } from "node-opcua-extension-object";
2✔
7
import { getStandardDataTypeFactory } from "node-opcua-factory";
2✔
8
import type { ExpandedNodeId } from "node-opcua-nodeid";
2✔
9

2✔
10
export type EngineForFactory = {};
2✔
11
export class Factory {
267✔
12
    public engine: EngineForFactory;
299✔
13

299✔
14
    constructor(engine: EngineForFactory) {
299✔
15
        assert(engine !== null && typeof engine === "object");
299✔
16
        this.engine = engine;
299✔
17
    }
299✔
18

299✔
19
    public constructObject(id: ExpandedNodeId): ExtensionObject {
299✔
20
        const obj = getStandardDataTypeFactory().constructObject(id);
×
21
        if (!(obj instanceof ExtensionObject)) {
×
22
            throw new Error("Internal Error constructObject");
×
23
        }
×
24
        return obj as ExtensionObject;
×
25
    }
×
26
}
299✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc