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

FontoXML / fontoxpath / 6107185957

07 Sep 2023 08:15AM UTC coverage: 91.555%. Remained the same
6107185957

push

github

DrRataplan
3.30.1

4938 of 5738 branches covered (0.0%)

Branch coverage included in aggregate %.

10640 of 11277 relevant lines covered (94.35%)

97908.84 hits per line

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

72.22
/src/expressions/xquery/XQueryErrors.ts
1
import { AttributeNodePointer, NodePointer } from '../../domClone/Pointer';
2
import { NODE_TYPES } from '../../domFacade/ConcreteNode';
3
import DomFacade from '../../domFacade/DomFacade';
4
import QName from '../dataTypes/valueTypes/QName';
5

6
export const errXPTY0004 = (message: string) => new Error(`XPTY0004: ${message}`);
9✔
7

8
export const errXQTY0024 = (node: NodePointer, domFacade: DomFacade) => {
9✔
9
        const nodeString =
10
                domFacade.getNodeType(node) === NODE_TYPES.ATTRIBUTE_NODE
×
11
                        ? `${domFacade.getNodeName(
12
                                        node as AttributeNodePointer
13
                          )}="${domFacade.getDataFromPointer(node as AttributeNodePointer)}"`
14
                        : (node.node as any).outerHTML;
15
        return new Error(
×
16
                `XQTY0024: The node ${nodeString} follows a node that is not an attribute node or a namespace node.`
17
        );
18
};
19
export const errXQDY0025 = (attributeName: string) =>
9✔
20
        new Error(
×
21
                `XQDY0025: The attribute ${attributeName} does not have an unique name in the constructed element.`
22
        );
23
export const errXQDY0026 = (content: string) =>
9✔
24
        new Error(
6✔
25
                `XQDY0026: The content "${content}" for a processing instruction node contains "?>".`
26
        );
27
export const errXQST0040 = (attributeName: string) =>
9✔
28
        new Error(
×
29
                `XQST0040: The attribute ${attributeName} does not have an unique name in the constructed element.`
30
        );
31
export const errXQDY0041 = (name: string) =>
9✔
32
        new Error(
×
33
                `XQDY0041: The value "${name}" of a name expressions cannot be converted to a NCName.`
34
        );
35
export const errXQDY0044 = (qName: QName) =>
9✔
36
        new Error(
×
37
                `XQDY0044: The node name "${qName.buildPrefixedName()}" is invalid for a computed attribute constructor.`
38
        );
39
export const errXQST0045 = () =>
9✔
40
        new Error(
3✔
41
                'XQST0045: Functions and variables may not be declared in one of the reserved namespace URIs.'
42
        );
43
export const errXQST0047 = (namespaceURI: string) =>
9✔
44
        new Error(`XQST0047: The namespace "${namespaceURI}" is imported more than once.`);
3✔
45
export const errXQST0049 = (namespaceURI: string, localName: string) =>
9✔
46
        new Error(
6✔
47
                `XQST0049: The function or variable "Q{${namespaceURI}}${localName}" is declared more than once.`
48
        );
49
export const errXQST0060 = () =>
9✔
50
        new Error(
6✔
51
                'XQST0060: Functions declared in a module or as an external function must reside in a namespace.'
52
        );
53
export const errXQST0066 = () =>
9✔
54
        new Error('XQST0066: A Prolog may contain at most one default function namespace declaration.');
3✔
55
export const errXQST0070 = () =>
9✔
56
        new Error(
3✔
57
                'XQST0070: The prefixes xml and xmlns may not be used in a namespace declaration or be bound to another namespaceURI.'
58
        );
59
export const errXQDY0072 = (content: string) =>
9✔
60
        new Error(
6✔
61
                `XQDY0072: The content "${content}" for a comment node contains two adjacent hyphens or ends with a hyphen.`
62
        );
63
export const errXQDY0074 = (name: string) =>
9✔
64
        new Error(
24✔
65
                `XQDY0074: The value "${name}" of a name expressions cannot be converted to an expanded QName.`
66
        );
67
export const errXPST0081 = (prefix: string) =>
9✔
68
        new Error(`XPST0081: The prefix "${prefix}" could not be resolved`);
×
69
export const errXQDY0096 = (qName: QName) =>
9✔
70
        new Error(
×
71
                `XQDY0096: The node name "${qName.buildPrefixedName()}" is invalid for a computed element constructor.`
72
        );
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc