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

FontoXML / fontoxpath / 10652762231

01 Sep 2024 09:15AM UTC coverage: 91.567%. Remained the same
10652762231

Pull #648

github

web-flow
Bump karma from 6.4.2 to 6.4.4

Bumps [karma](https://github.com/karma-runner/karma) from 6.4.2 to 6.4.4.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.4.2...v6.4.4)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #648: Bump karma from 6.4.2 to 6.4.4

5002 of 5811 branches covered (86.08%)

Branch coverage included in aggregate %.

10775 of 11419 relevant lines covered (94.36%)

96665.35 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}`);
15✔
7

8
export const errXQTY0024 = (node: NodePointer, domFacade: DomFacade) => {
15✔
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) =>
15✔
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) =>
15✔
24
        new Error(
6✔
25
                `XQDY0026: The content "${content}" for a processing instruction node contains "?>".`,
26
        );
27
export const errXQST0040 = (attributeName: string) =>
15✔
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) =>
15✔
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) =>
15✔
36
        new Error(
×
37
                `XQDY0044: The node name "${qName.buildPrefixedName()}" is invalid for a computed attribute constructor.`,
38
        );
39
export const errXQST0045 = () =>
15✔
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) =>
15✔
44
        new Error(`XQST0047: The namespace "${namespaceURI}" is imported more than once.`);
3✔
45
export const errXQST0049 = (namespaceURI: string, localName: string) =>
15✔
46
        new Error(
6✔
47
                `XQST0049: The function or variable "Q{${namespaceURI}}${localName}" is declared more than once.`,
48
        );
49
export const errXQST0060 = () =>
15✔
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 = () =>
15✔
54
        new Error('XQST0066: A Prolog may contain at most one default function namespace declaration.');
3✔
55
export const errXQST0070 = () =>
15✔
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) =>
15✔
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) =>
15✔
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) =>
15✔
68
        new Error(`XPST0081: The prefix "${prefix}" could not be resolved`);
×
69
export const errXQDY0096 = (qName: QName) =>
15✔
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