Skip to content

Commit

Permalink
Merge pull request #311 from Achal1607/initial-unit-tests-setup
Browse files Browse the repository at this point in the history
Initial setup of unit tests
  • Loading branch information
sid-srini authored Nov 5, 2024
2 parents a1c5c5e + 1deb2db commit fe7bece
Show file tree
Hide file tree
Showing 32 changed files with 5,609 additions and 157 deletions.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
patches/nbjavac-not-required.diff
patches/l10n-licence.diff
patches/no-security-manager-allow.diff
patches/dev-dependency-licenses.diff
</string>
<filterchain>
<tokenfilter delimoutput=" ">
Expand Down
138 changes: 138 additions & 0 deletions patches/dev-dependency-licenses.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/assertion-error-1.1.0-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/assertion-error-1.1.0-license
new file mode 100644
index 0000000000..db92c5cb72
--- /dev/null
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/assertion-error-1.1.0-license
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2013 Jake Luer <[email protected]> (http://qualiancy.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/eastasianwidth-0.2.0-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/eastasianwidth-0.2.0-license
new file mode 100644
index 0000000000..e8f4a01dd0
--- /dev/null
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/eastasianwidth-0.2.0-license
@@ -0,0 +1,20 @@
+Copyright komagata
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/imurmurhash-0.1.4-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/imurmurhash-0.1.4-license
new file mode 100644
index 0000000000..14c83ad1c4
--- /dev/null
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/imurmurhash-0.1.4-license
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Gary Court, Jens Taylor
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/isarray-1.0.0-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/isarray-1.0.0-license
new file mode 100644
index 0000000000..ba21cfcb7d
--- /dev/null
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/isarray-1.0.0-license
@@ -0,0 +1,22 @@
+(MIT)
+
+Copyright (c) 2013 Julian Gruber &lt;[email protected]&gt;
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/jszip-3.10.1-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/jszip-3.10.1-license
new file mode 100644
index 0000000000..803b55c862
--- /dev/null
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/jszip-3.10.1-license
@@ -0,0 +1,25 @@
+JSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3
+license.
+
+The MIT License
+===============
+
+Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
4 changes: 3 additions & 1 deletion vscode/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ nbcode
node_modules
out
nbproject
.vscode-test/
.vscode-test/
.nyc_output
coverage/
21 changes: 21 additions & 0 deletions vscode/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"reporter": [
"text",
"html",
"text-summary",
"cobertura"
],
"all": true,
"include": [
"src/**/*.ts",
"out/**/*.js"
],
"exclude": [
"src/test/**/*.ts",
"out/test/**/*.js",
"out/utils.js",
"out/logger.js",
"out/constants.js"
]
}
4 changes: 4 additions & 0 deletions vscode/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ vsc-extension-quickstart.md
**/.eslintrc.json
**/*.map
**/*.ts
.nyc_output/**
coverage/**
**/.nycrc.json
esbuild.js
Loading

0 comments on commit fe7bece

Please sign in to comment.