diff options
Diffstat (limited to '.devcontainer')
5 files changed, 545 insertions, 8 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 0c2907b..bd84abc 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -28,3 +28,6 @@ RUN mkdir -p $HOST_DIR RUN chown $USER_UID:$USER_GID $HOST_DIR VOLUME [ "${HOST_DIR}" ] ENV HOST_DIR=${HOST_DIR} + +# Copy in starter data +COPY data $HOST_DIR diff --git a/.devcontainer/data/kjhoerr/ao-coverage/trunk/400ab021c92101bc6db1f70fba41e673de7ee14a/badge.svg b/.devcontainer/data/kjhoerr/ao-coverage/trunk/400ab021c92101bc6db1f70fba41e673de7ee14a/badge.svg new file mode 100644 index 0000000..505b421 --- /dev/null +++ b/.devcontainer/data/kjhoerr/ao-coverage/trunk/400ab021c92101bc6db1f70fba41e673de7ee14a/badge.svg @@ -0,0 +1,20 @@ +<svg width="96.3" height="20" viewBox="0 0 963 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="coverage: 99%"> + <title>coverage: 99%</title> + <linearGradient id="a" x2="0" y2="100%"> + <stop offset="0" stop-opacity=".1" stop-color="#EEE"/> + <stop offset="1" stop-opacity=".1"/> + </linearGradient> + <mask id="m"><rect width="963" height="200" rx="30" fill="#FFF"/></mask> + <g mask="url(#m)"> + <rect width="603" height="200" fill="#555"/> + <rect width="360" height="200" fill="#4c1" x="603"/> + <rect width="963" height="200" fill="url(#a)"/> + </g> + <g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110"> + <text x="60" y="148" textLength="503" fill="#000" opacity="0.25">coverage</text> + <text x="50" y="138" textLength="503">coverage</text> + <text x="658" y="148" textLength="260" fill="#000" opacity="0.25">99%</text> + <text x="648" y="138" textLength="260">99%</text> + </g> + +</svg>
\ No newline at end of file diff --git a/.devcontainer/data/kjhoerr/ao-coverage/trunk/400ab021c92101bc6db1f70fba41e673de7ee14a/index.xml b/.devcontainer/data/kjhoerr/ao-coverage/trunk/400ab021c92101bc6db1f70fba41e673de7ee14a/index.xml new file mode 100644 index 0000000..da9bc52 --- /dev/null +++ b/.devcontainer/data/kjhoerr/ao-coverage/trunk/400ab021c92101bc6db1f70fba41e673de7ee14a/index.xml @@ -0,0 +1,498 @@ +<?xml version="1.0" ?> +<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd"> +<coverage lines-valid="215" lines-covered="214" line-rate="0.9953" branches-valid="71" branches-covered="62" branch-rate="0.8732" timestamp="1632191830535" complexity="0" version="0.1"> + <sources> + <source>/workspace</source> + </sources> + <packages> + <package name="src" line-rate="0.9934999999999999" branch-rate="0.8889"> + <classes> + <class name="errors.ts" filename="src/errors.ts" line-rate="1" branch-rate="1"> + <methods> + <method name="(anonymous_0)" hits="4" signature="()V"> + <lines> + <line number="2" hits="4"/> + </lines> + </method> + <method name="(anonymous_1)" hits="5" signature="()V"> + <lines> + <line number="10" hits="5"/> + </lines> + </method> + </methods> + <lines> + <line number="1" hits="3" branch="false"/> + <line number="3" hits="4" branch="false"/> + <line number="4" hits="4" branch="false"/> + <line number="5" hits="4" branch="false"/> + <line number="9" hits="3" branch="false"/> + <line number="11" hits="5" branch="false"/> + <line number="12" hits="5" branch="false"/> + <line number="13" hits="5" branch="false"/> + <line number="17" hits="3" branch="false"/> + </lines> + </class> + <class name="formats.ts" filename="src/formats.ts" line-rate="1" branch-rate="1"> + <methods> + <method name="(anonymous_0)" hits="55" signature="()V"> + <lines> + <line number="30" hits="55"/> + </lines> + </method> + <method name="(anonymous_1)" hits="7" signature="()V"> + <lines> + <line number="50" hits="7"/> + </lines> + </method> + <method name="(anonymous_2)" hits="10" signature="()V"> + <lines> + <line number="57" hits="10"/> + </lines> + </method> + <method name="(anonymous_3)" hits="7" signature="()V"> + <lines> + <line number="81" hits="7"/> + </lines> + </method> + <method name="(anonymous_4)" hits="13" signature="()V"> + <lines> + <line number="105" hits="13"/> + </lines> + </method> + <method name="(anonymous_5)" hits="23" signature="()V"> + <lines> + <line number="109" hits="23"/> + </lines> + </method> + </methods> + <lines> + <line number="1" hits="2" branch="false"/> + <line number="2" hits="2" branch="false"/> + <line number="3" hits="2" branch="false"/> + <line number="30" hits="2" branch="false"/> + <line number="35" hits="55" branch="false"/> + <line number="44" hits="55" branch="false"/> + <line number="47" hits="2" branch="false"/> + <line number="51" hits="7" branch="false"/> + <line number="52" hits="7" branch="false"/> + <line number="53" hits="7" branch="true" condition-coverage="100% (2/2)"/> + <line number="54" hits="2" branch="false"/> + <line number="56" hits="5" branch="false"/> + <line number="57" hits="5" branch="false"/> + <line number="58" hits="10" branch="false"/> + <line number="59" hits="10" branch="false"/> + <line number="60" hits="74" branch="false"/> + <line number="61" hits="74" branch="true" condition-coverage="100% (2/2)"/> + <line number="62" hits="64" branch="false"/> + <line number="65" hits="10" branch="false"/> + <line number="68" hits="5" branch="false"/> + <line number="69" hits="5" branch="false"/> + <line number="72" hits="5" branch="true" condition-coverage="100% (2/2)"/> + <line number="73" hits="1" branch="false"/> + <line number="75" hits="4" branch="false"/> + <line number="82" hits="7" branch="false"/> + <line number="83" hits="7" branch="false"/> + <line number="85" hits="6" branch="true" condition-coverage="100% (2/2)"/> + <line number="86" hits="1" branch="false"/> + <line number="88" hits="5" branch="false"/> + <line number="89" hits="5" branch="false"/> + <line number="91" hits="5" branch="true" condition-coverage="100% (2/2)"/> + <line number="92" hits="1" branch="false"/> + <line number="94" hits="4" branch="false"/> + <line number="97" hits="1" branch="false"/> + <line number="106" hits="13" branch="false"/> + <line number="110" hits="23" branch="false"/> + <line number="114" hits="2" branch="false"/> + </lines> + </class> + <class name="routes.ts" filename="src/routes.ts" line-rate="0.9901000000000001" branch-rate="0.85"> + <methods> + <method name="(anonymous_7)" hits="39" signature="()V"> + <lines> + <line number="14" hits="39"/> + </lines> + </method> + <method name="(anonymous_8)" hits="8" signature="()V"> + <lines> + <line number="17" hits="8"/> + </lines> + </method> + <method name="(anonymous_9)" hits="1" signature="()V"> + <lines> + <line number="57" hits="1"/> + </lines> + </method> + <method name="(anonymous_10)" hits="1" signature="()V"> + <lines> + <line number="65" hits="1"/> + </lines> + </method> + <method name="(anonymous_11)" hits="1" signature="()V"> + <lines> + <line number="70" hits="1"/> + </lines> + </method> + <method name="(anonymous_12)" hits="14" signature="()V"> + <lines> + <line number="80" hits="14"/> + </lines> + </method> + <method name="(anonymous_13)" hits="8" signature="()V"> + <lines> + <line number="98" hits="8"/> + </lines> + </method> + <method name="(anonymous_14)" hits="8" signature="()V"> + <lines> + <line number="103" hits="8"/> + </lines> + </method> + <method name="(anonymous_15)" hits="14" signature="()V"> + <lines> + <line number="141" hits="14"/> + </lines> + </method> + <method name="(anonymous_16)" hits="14" signature="()V"> + <lines> + <line number="156" hits="14"/> + </lines> + </method> + <method name="(anonymous_17)" hits="4" signature="()V"> + <lines> + <line number="163" hits="4"/> + </lines> + </method> + <method name="(anonymous_18)" hits="3" signature="()V"> + <lines> + <line number="167" hits="3"/> + </lines> + </method> + <method name="(anonymous_19)" hits="1" signature="()V"> + <lines> + <line number="180" hits="1"/> + </lines> + </method> + <method name="(anonymous_20)" hits="10" signature="()V"> + <lines> + <line number="189" hits="10"/> + </lines> + </method> + <method name="(anonymous_21)" hits="8" signature="()V"> + <lines> + <line number="193" hits="8"/> + </lines> + </method> + <method name="(anonymous_22)" hits="2" signature="()V"> + <lines> + <line number="207" hits="2"/> + </lines> + </method> + <method name="(anonymous_23)" hits="2" signature="()V"> + <lines> + <line number="217" hits="2"/> + </lines> + </method> + <method name="(anonymous_24)" hits="2" signature="()V"> + <lines> + <line number="229" hits="2"/> + </lines> + </method> + <method name="(anonymous_25)" hits="2" signature="()V"> + <lines> + <line number="241" hits="2"/> + </lines> + </method> + <method name="(anonymous_26)" hits="1" signature="()V"> + <lines> + <line number="253" hits="1"/> + </lines> + </method> + </methods> + <lines> + <line number="1" hits="1" branch="false"/> + <line number="2" hits="1" branch="false"/> + <line number="3" hits="1" branch="false"/> + <line number="4" hits="1" branch="false"/> + <line number="5" hits="1" branch="false"/> + <line number="7" hits="1" branch="false"/> + <line number="8" hits="1" branch="false"/> + <line number="9" hits="1" branch="false"/> + <line number="10" hits="1" branch="false"/> + <line number="12" hits="1" branch="false"/> + <line number="14" hits="1" branch="false"/> + <line number="15" hits="39" branch="false"/> + <line number="17" hits="39" branch="false"/> + <line number="22" hits="8" branch="false"/> + <line number="29" hits="8" branch="false"/> + <line number="30" hits="8" branch="true" condition-coverage="100% (2/2)"/> + <line number="31" hits="2" branch="false"/> + <line number="35" hits="6" branch="false"/> + <line number="38" hits="6" branch="false"/> + <line number="39" hits="6" branch="false"/> + <line number="46" hits="6" branch="false"/> + <line number="47" hits="6" branch="false"/> + <line number="53" hits="6" branch="false"/> + <line number="57" hits="39" branch="false"/> + <line number="58" hits="1" branch="false"/> + <line number="62" hits="39" branch="false"/> + <line number="65" hits="1" branch="false"/> + <line number="70" hits="39" branch="false"/> + <line number="71" hits="1" branch="false"/> + <line number="74" hits="39" branch="false"/> + <line number="80" hits="39" branch="false"/> + <line number="81" hits="14" branch="false"/> + <line number="83" hits="14" branch="false"/> + <line number="84" hits="14" branch="true" condition-coverage="100% (2/2)"/> + <line number="85" hits="2" branch="false"/> + <line number="88" hits="12" branch="true" condition-coverage="100% (4/4)"/> + <line number="89" hits="2" branch="false"/> + <line number="92" hits="10" branch="false"/> + <line number="93" hits="10" branch="true" condition-coverage="83.33333333333334% (5/6)"/> + <line number="94" hits="2" branch="false"/> + <line number="97" hits="8" branch="false"/> + <line number="98" hits="8" branch="false"/> + <line number="99" hits="8" branch="true" condition-coverage="50% (1/2)"/> + <line number="100" hits="8" branch="false"/> + <line number="103" hits="8" branch="false"/> + <line number="105" hits="8" branch="true" condition-coverage="50% (1/2)"/> + <line number="106" hits="0" branch="false"/> + <line number="109" hits="8" branch="false"/> + <line number="110" hits="8" branch="false"/> + <line number="117" hits="8" branch="false"/> + <line number="118" hits="8" branch="false"/> + <line number="120" hits="6" branch="true" condition-coverage="100% (2/2)"/> + <line number="121" hits="4" branch="true" condition-coverage="100% (2/2)"/> + <line number="122" hits="2" branch="false"/> + <line number="124" hits="2" branch="false"/> + <line number="127" hits="2" branch="false"/> + <line number="130" hits="2" branch="false"/> + <line number="133" hits="2" branch="false"/> + <line number="136" hits="2" branch="false"/> + <line number="141" hits="39" branch="false"/> + <line number="146" hits="14" branch="false"/> + <line number="148" hits="14" branch="false"/> + <line number="156" hits="14" branch="false"/> + <line number="157" hits="14" branch="false"/> + <line number="163" hits="39" branch="false"/> + <line number="164" hits="4" branch="false"/> + <line number="166" hits="4" branch="false"/> + <line number="168" hits="3" branch="true" condition-coverage="100% (2/2)"/> + <line number="169" hits="2" branch="false"/> + <line number="175" hits="2" branch="false"/> + <line number="177" hits="1" branch="false"/> + <line number="181" hits="1" branch="false"/> + <line number="184" hits="1" branch="false"/> + <line number="189" hits="39" branch="false"/> + <line number="190" hits="10" branch="false"/> + <line number="192" hits="10" branch="false"/> + <line number="194" hits="8" branch="true" condition-coverage="100% (2/2)"/> + <line number="195" hits="6" branch="false"/> + <line number="201" hits="6" branch="false"/> + <line number="202" hits="6" branch="false"/> + <line number="204" hits="2" branch="false"/> + <line number="208" hits="2" branch="false"/> + <line number="211" hits="2" branch="false"/> + <line number="217" hits="39" branch="false"/> + <line number="218" hits="2" branch="false"/> + <line number="219" hits="2" branch="false"/> + <line number="225" hits="2" branch="false"/> + <line number="229" hits="39" branch="false"/> + <line number="230" hits="2" branch="false"/> + <line number="231" hits="2" branch="false"/> + <line number="232" hits="2" branch="false"/> + <line number="238" hits="2" branch="false"/> + <line number="241" hits="39" branch="false"/> + <line number="242" hits="2" branch="false"/> + <line number="243" hits="2" branch="false"/> + <line number="244" hits="2" branch="false"/> + <line number="250" hits="2" branch="false"/> + <line number="253" hits="39" branch="false"/> + <line number="254" hits="1" branch="false"/> + <line number="255" hits="1" branch="false"/> + <line number="258" hits="39" branch="false"/> + </lines> + </class> + <class name="templates.ts" filename="src/templates.ts" line-rate="1" branch-rate="1"> + <methods> + <method name="(anonymous_1)" hits="4" signature="()V"> + <lines> + <line number="11" hits="4"/> + </lines> + </method> + <method name="(anonymous_2)" hits="4" signature="()V"> + <lines> + <line number="14" hits="4"/> + </lines> + </method> + <method name="(anonymous_3)" hits="4" signature="()V"> + <lines> + <line number="22" hits="4"/> + </lines> + </method> + <method name="(anonymous_4)" hits="4" signature="()V"> + <lines> + <line number="25" hits="4"/> + </lines> + </method> + </methods> + <lines> + <line number="1" hits="3" branch="false"/> + <line number="2" hits="3" branch="false"/> + <line number="11" hits="3" branch="false"/> + <line number="12" hits="4" branch="false"/> + <line number="15" hits="4" branch="false"/> + <line number="17" hits="4" branch="false"/> + <line number="23" hits="4" branch="false"/> + <line number="25" hits="4" branch="false"/> + </lines> + </class> + </classes> + </package> + <package name="src.util" line-rate="1" branch-rate="0.8234999999999999"> + <classes> + <class name="config.ts" filename="src/util/config.ts" line-rate="1" branch-rate="0.8332999999999999"> + <methods> + <method name="(anonymous_1)" hits="1" signature="()V"> + <lines> + <line number="14" hits="1"/> + </lines> + </method> + <method name="(anonymous_2)" hits="4" signature="()V"> + <lines> + <line number="29" hits="4"/> + </lines> + </method> + <method name="(anonymous_3)" hits="7" signature="()V"> + <lines> + <line number="39" hits="7"/> + </lines> + </method> + <method name="(anonymous_4)" hits="4" signature="()V"> + <lines> + <line number="65" hits="4"/> + </lines> + </method> + <method name="(anonymous_5)" hits="1" signature="()V"> + <lines> + <line number="77" hits="1"/> + </lines> + </method> + <method name="(anonymous_6)" hits="3" signature="()V"> + <lines> + <line number="104" hits="3"/> + </lines> + </method> + <method name="(anonymous_7)" hits="3" signature="()V"> + <lines> + <line number="104" hits="3"/> + </lines> + </method> + <method name="(anonymous_8)" hits="2" signature="()V"> + <lines> + <line number="111" hits="2"/> + </lines> + </method> + <method name="(anonymous_9)" hits="2" signature="()V"> + <lines> + <line number="113" hits="2"/> + </lines> + </method> + <method name="(anonymous_10)" hits="2" signature="()V"> + <lines> + <line number="114" hits="2"/> + </lines> + </method> + <method name="(anonymous_11)" hits="1" signature="()V"> + <lines> + <line number="120" hits="1"/> + </lines> + </method> + <method name="(anonymous_12)" hits="2" signature="()V"> + <lines> + <line number="121" hits="2"/> + </lines> + </method> + </methods> + <lines> + <line number="1" hits="2" branch="false"/> + <line number="2" hits="2" branch="false"/> + <line number="4" hits="2" branch="false"/> + <line number="5" hits="2" branch="false"/> + <line number="6" hits="2" branch="false"/> + <line number="8" hits="2" branch="false"/> + <line number="9" hits="2" branch="false"/> + <line number="12" hits="2" branch="false"/> + <line number="14" hits="2" branch="false"/> + <line number="16" hits="1" branch="false"/> + <line number="18" hits="1" branch="false"/> + <line number="22" hits="1" branch="false"/> + <line number="26" hits="1" branch="false"/> + <line number="29" hits="2" branch="false"/> + <line number="30" hits="4" branch="false"/> + <line number="31" hits="4" branch="true" condition-coverage="100% (2/2)"/> + <line number="32" hits="3" branch="false"/> + <line number="34" hits="1" branch="false"/> + <line number="35" hits="1" branch="false"/> + <line number="39" hits="2" branch="false"/> + <line number="40" hits="7" branch="false"/> + <line number="41" hits="7" branch="false"/> + <line number="42" hits="5" branch="false"/> + <line number="44" hits="2" branch="false"/> + <line number="45" hits="2" branch="false"/> + <line number="47" hits="1" branch="false"/> + <line number="52" hits="1" branch="false"/> + <line number="54" hits="1" branch="false"/> + <line number="57" hits="2" branch="false"/> + <line number="65" hits="2" branch="false"/> + <line number="70" hits="4" branch="false"/> + <line number="71" hits="4" branch="false"/> + <line number="72" hits="4" branch="false"/> + <line number="73" hits="3" branch="true" condition-coverage="100% (2/2)"/> + <line number="74" hits="1" branch="false"/> + <line number="77" hits="2" branch="false"/> + <line number="78" hits="1" branch="true" condition-coverage="75% (3/4)"/> + <line number="81" hits="1" branch="false"/> + <line number="86" hits="1" branch="false"/> + <line number="97" hits="1" branch="false"/> + <line number="99" hits="3" branch="false"/> + <line number="100" hits="3" branch="false"/> + <line number="104" hits="3" branch="false"/> + <line number="107" hits="3" branch="false"/> + <line number="109" hits="3" branch="false"/> + <line number="112" hits="2" branch="false"/> + <line number="113" hits="2" branch="false"/> + <line number="114" hits="2" branch="false"/> + <line number="115" hits="2" branch="false"/> + <line number="116" hits="2" branch="true" condition-coverage="100% (2/2)"/> + <line number="120" hits="1" branch="false"/> + <line number="121" hits="2" branch="false"/> + </lines> + </class> + <class name="logger.ts" filename="src/util/logger.ts" line-rate="1" branch-rate="0.8"> + <methods> + <method name="(anonymous_1)" hits="7" signature="()V"> + <lines> + <line number="11" hits="7"/> + </lines> + </method> + <method name="(anonymous_2)" hits="6" signature="()V"> + <lines> + <line number="19" hits="6"/> + </lines> + </method> + </methods> + <lines> + <line number="1" hits="2" branch="false"/> + <line number="4" hits="2" branch="false"/> + <line number="5" hits="2" branch="false"/> + <line number="7" hits="2" branch="true" condition-coverage="75% (3/4)"/> + <line number="9" hits="2" branch="false"/> + <line number="12" hits="7" branch="false"/> + <line number="19" hits="2" branch="false"/> + <line number="25" hits="6" branch="false"/> + </lines> + </class> + </classes> + </package> + </packages> +</coverage> diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 74b5210..3f03bc3 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -10,10 +10,10 @@ services: USER_UID: 1000 USER_GID: 1000 - # Change this if you want zsh as your shell INSTALL_ZSH: false + MONGO_TOOLS_VERSION: 4.2 - # Volume directory for hosted files. This directory is created in the Dockerfile with proper permissions. This is set as an env-var in the Dockerfile + # Volume directory for hosted files. This directory is created on image build with proper permissions. This is set as an env-var in the Dockerfile HOST_DIR: /dist environment: @@ -35,6 +35,7 @@ services: volumes: - ..:/workspace:cached - node-nm:/workspace/node_modules:cached + - dev-dist:/dist:cached # Overrides default command so things don't shut down after the process ends. command: sleep infinity @@ -53,16 +54,15 @@ services: restart: unless-stopped volumes: - mongodb-data:/data/db + - ./mongo:/docker-entrypoint-initdb.d - # Uncomment to change startup options - # environment: - # MONGO_INITDB_ROOT_USERNAME: root - # MONGO_INITDB_ROOT_PASSWORD: example - # MONGO_INITDB_DATABASE: your-database-here + environment: + MONGO_INITDB_DATABASE: ao-coverage # Add "forwardPorts": ["27017"] to **devcontainer.json** to forward MongoDB locally. # (Adding the "ports" property to this file will not forward from a Codespace.) volumes: mongodb-data: - node-nm:
\ No newline at end of file + node-nm: + dev-dist:
\ No newline at end of file diff --git a/.devcontainer/mongo/0100-data.js b/.devcontainer/mongo/0100-data.js new file mode 100644 index 0000000..dec22ae --- /dev/null +++ b/.devcontainer/mongo/0100-data.js @@ -0,0 +1,16 @@ + +db.createCollection("repository"); +db.repository.insertMany([ + { + organization: "kjhoerr", + name: "ao-coverage", + branches: { + "trunk": { + head: { + commit: "400ab021c92101bc6db1f70fba41e673de7ee14a", + format: "cobertura" + } + } + } + } +]);
\ No newline at end of file |
