update test suite for recent index load on rebuild changes
parent
3ac2ae1f14
commit
a6d38b7f26
12
t/index.t
12
t/index.t
|
@ -117,11 +117,14 @@ is_deeply(\%oldtypedlinks, {
|
||||||
%pagesources=%pagemtime=%oldlinks=%links=%depends=%typedlinks=%oldtypedlinks=
|
%pagesources=%pagemtime=%oldlinks=%links=%depends=%typedlinks=%oldtypedlinks=
|
||||||
%destsources=%renderedfiles=%pagecase=%pagestate=();
|
%destsources=%renderedfiles=%pagecase=%pagestate=();
|
||||||
|
|
||||||
# When state is loaded for a wiki rebuild, only ctime and oldrenderedfiles
|
# When state is loaded for a wiki rebuild, only ctime, oldrenderedfiles,
|
||||||
# are retained.
|
# and pagesources are retained.
|
||||||
$config{rebuild}=1;
|
$config{rebuild}=1;
|
||||||
ok(loadindex(), "load index");
|
ok(loadindex(), "load index");
|
||||||
is_deeply(\%pagesources, {
|
is_deeply(\%pagesources, {
|
||||||
|
Foo => "Foo.mdwn",
|
||||||
|
bar => "bar.mdwn",
|
||||||
|
"bar.png" => "bar.png",
|
||||||
}, "%pagesources loaded correctly");
|
}, "%pagesources loaded correctly");
|
||||||
is_deeply(\%pagemtime, {
|
is_deeply(\%pagemtime, {
|
||||||
}, "%pagemtime loaded correctly");
|
}, "%pagemtime loaded correctly");
|
||||||
|
@ -143,7 +146,10 @@ is_deeply(\%depends, {
|
||||||
}, "%depends loaded correctly");
|
}, "%depends loaded correctly");
|
||||||
is_deeply(\%pagestate, {
|
is_deeply(\%pagestate, {
|
||||||
}, "%pagestate loaded correctly");
|
}, "%pagestate loaded correctly");
|
||||||
is_deeply(\%pagecase, {
|
is_deeply(\%pagecase, { # generated implicitly since pagesources is loaded
|
||||||
|
foo => "Foo",
|
||||||
|
bar => "bar",
|
||||||
|
"bar.png" => "bar.png"
|
||||||
}, "%pagecase generated correctly");
|
}, "%pagecase generated correctly");
|
||||||
is_deeply(\%destsources, {
|
is_deeply(\%destsources, {
|
||||||
}, "%destsources generated correctly");
|
}, "%destsources generated correctly");
|
||||||
|
|
Loading…
Reference in New Issue