This file is indexed.

/usr/share/seed-gtk4-tests/javascript/sqlite.js is in libseed-gtk4-0 4.0.0+20161014+6c77960+dfsg1-5build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env seed

// this may not be the real build location... - but push it on the stack 
imports.searchPath.unshift('../../modules/sqlite/.libs');


testsuite = imports.testsuite
Gio = imports.gi.Gio
sqlite = imports.sqlite
JSON = imports.JSON

try
{
    Gio.file_new_for_path("/tmp/.seed_test.db")["delete"]()
}
catch(e)
{
    // We don't care if we fail to delete the (probably nonexistent) file...
}

d = new sqlite.Database("/tmp/.seed_test.db")

d.exec("create table t1 (t1key INTEGER PRIMARY KEY,data TEXT,num double,timeEnter DATE)")
d.exec("insert into t1 (data,num) values ('This is sample data',3)")
d.exec("insert into t1 (data,num) values ('More sample data',6)")
d.exec("insert into t1 (data,num) values ('And a little more',9)")

d.exec("select * from t1 where num = 6", function(results) {
    testsuite.assert(results.t1key == "2")
    testsuite.assert(results.data == "More sample data")
    testsuite.assert(results.num == 6.0)
})

d.close()

testsuite.checkAsserts(3)