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

ngageoint / geopackage-js / 4078143969

pending completion
4078143969

push

github

Christopher Caldwell
bump version

3593 of 8015 branches covered (44.83%)

Branch coverage included in aggregate %.

15102 of 20471 relevant lines covered (73.77%)

1564.55 hits per line

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

85.0
/lib/attributes/attributesRow.ts
1
import { AttributesTable } from './attributesTable';
2
import { UserRow } from '../user/userRow';
1✔
3
import { AttributesColumns } from './attributesColumns';
4
import { AttributesColumn } from './attributesColumn';
5
import { DBValue } from '../db/dbValue';
6

7
/**
8
 * Attribute Row containing the values from a single result set row
9
 */
10
export class AttributesRow extends UserRow<AttributesColumn, AttributesTable> {
1✔
11
  /**
12
   * Constructor
13
   * @param table attributes table
14
   * @param columns columns
15
   * @param columnTypes column types
16
   * @param values values
17
   */
18
  public constructor(table: AttributesTable, columns: AttributesColumns, columnTypes: number[], values: DBValue[]);
19

20
  /**
21
   * Constructor to create an empty row
22
   * @param table attributes table
23
   */
24
  public constructor(table: AttributesTable);
25

26
  /**
27
   * Copy Constructor
28
   * @param attributesRow attributes row to copy
29
   */
30
  public constructor(attributesRow: AttributesRow);
31

32
  /**
33
   * Constructor
34
   * @param args
35
   */
36
  public constructor(...args) {
3,528✔
37
    if (args.length === 1) {
836✔
38
      super(args[0]);
496✔
39
    } else if (args.length === 4) {
340!
40
      super(args[0], args[1], args[2], args[3]);
340✔
41
    }
42
  }
43

44
  /**
45
   * @inheritDoc
46
   */
47
  public getColumns(): AttributesColumns {
1✔
48
    return super.getColumns() as AttributesColumns;
×
49
  }
50

51
  /**
52
   * Copy the row
53
   * @return row copy
54
   */
55
  public copy(): AttributesRow {
1✔
56
    return new AttributesRow(this);
×
57
  }
58
}
1✔
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

© 2026 Coveralls, Inc