🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit c9895884e73b2dfd643edc7e868802de1787c955
Parent: eaba5d50d606abce1ac39a1d6d2d0d282efc975a
Author: mcol <mcol@posteo.net>
Date: 2021-12-04 23:14:03 +0300
Committer: mcol <mcol@posteo.net>
Committed: 2021-12-04 23:14:03 +0300

Remove test/expected/gitserve/file from test's checked files

test/test.sh Modified

@@ -30,17 +30,16 @@
 
 declare -a TESTS
 TESTS=(
-    "index.html"
+    "index.html"  # Index scope
     "link.html"  # Symbolic link at top level
     "style.css"  # Static file at top level
-    "so_called_binary_file"
     "static/a_nice_file"  # Static folder at top level
-    "gitserve/index.html"
-    "gitserve/commit/0292014748caae952bbc8dd6225680d83c0a5135.html"
-    "gitserve/file/test.expected.gitserve.file.html"
-    "gitserve/file/test.templates.style.css.html"
-    "gitserve/file/test.templates.so_called_binary_file.html"
-    "gitserve/file/github.FUNDING.yml.html"  # Drops leading period
+    "gitserve/index.html"  # Repo scope
+    "gitserve/commit/0292014748caae952bbc8dd6225680d83c0a5135.html"  # A commit
+    "gitserve/file/test.templates.style.css.html"  # A plain text file
+    "so_called_binary_file"  # Static file at top level that git considers binary
+    "gitserve/file/test.templates.so_called_binary_file.html"  # The binary file
+    "gitserve/file/github.FUNDING.yml.html"  # HREF drops leading period
     "gitserve/log.html"  # Symbolic link inside repo/
     "gitserve/static/another_file"  # Static folder inside repo/
 )

test/expected/gitserve/file/test.expected.gitserve.file.html Deleted

@@ -1,22 +0,0 @@
-test/expected/gitserve/file
-scope: file
-file: test/expected/gitserve/file
-file.path: test/expected/gitserve/file
-file.href: test.expected.gitserve.file.html
-file.contents: [&quot;test/expected/gitserve/file/test.expected.gitserve.file.html&quot;,&quot;test/expected/gitserve/file/test.templates.so_called_binary_file.html&quot;,&quot;test/expected/gitserve/file/test.templates.style.css.html&quot;]
-file.mode: Directory
-file.mode_octal: 40000
-file.mode_symbolic: drwxr-xr-x
-if file.is_directory then "directory" else "file": "directory"
-
-file scope also should have data from repo scope available:
-host: https://github.com/m-col/gitserve
-repos: gitserve
-name: gitserve
-description: 🐙 Templated web page generator for your git repositories
-commits: (skipped)
-tree: (skipped)
-tags: 1
-branches: 1
-readme.path: README.rst
-license.path: LICENSE