Skip to content

Commit

Permalink
Add docs page for PDB test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshanuikabundi committed Jan 14, 2025
1 parent 91726a2 commit e3073ee
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ hidden: true
---

Overview <self>
tests.md
:::

<!--
Expand Down
38 changes: 38 additions & 0 deletions docs/tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# PDB Test Suite

Pablo has a (developing) PDB test suite.

:::{list-table}
:header-rows: 1
:name: pdb-tests
:align: left
:width: 100%
:widths: 25 75

* - File name <input type="text" id="pdb-filter-0" onkeyup="filterTable(0)" placeholder="Filter..." style="display: block; width: 8rem">
- Coverage <input type="text" id="pdb-filter-1" onkeyup="filterTable(1)" placeholder="Filter..." style="display: block; width: 8rem">
* - 5ap1_prepared.pdb
- ACE/NME caps, `unique_molecules`
:::

<script>
function filterTable(column) {
var input, filter, table, tr, td, i, txtValue;
input = document.getElementById(`pdb-filter-${column}`);
filter = input.value.toUpperCase();
table = document.getElementById("pdb-tests");
tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[column];
if (td) {
txtValue = td.textContent || td.innerText;
console.log(column, txtValue)
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script>

0 comments on commit e3073ee

Please sign in to comment.