summaryrefslogtreecommitdiffstats
path: root/tests/core/io
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@f128f383e892865379cb8b14e7bcc9858efe2973Spartan3222024-11-271-0/+295
|\
| * Add unit tests for UDPServerPablo Andres Fuente2024-11-221-0/+293
| | | | | | | | This PR aims to help "fix" #43440
* | Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-263-1/+136
|\|
| * Merge pull request #97716 from ↵Thaddeus Crews2024-11-223-1/+136
| |\ | | | | | | | | | | | | | | | pafuent/add_half_precision_floating_point_to_stream_peer Add half precision floating point support to `StreamPeer` and `FileAccess`
| | * Add half precision floating point support to `StreamPeer`Pablo Andres Fuente2024-11-123-1/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes godotengine/godot-proposals#5983 Adds put/get methods to `StreamPeer` that handles half precision floating point values. Adds endode/decode half precision floating point to `marshalls`. Adds `get_half` and `store_half` to `FileAccess` Co-Authored-By: "Alfonso J. Ramos" <theraot@gmail.com>
* | | Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-8/+91
|\| |
| * | Core: Add typed dictionary support for binary serializationDanil Alexeev2024-11-121-8/+91
| |/
* | Fix copyright headers referring to GodotSpartan3222024-10-2714-28/+28
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-1114-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* | Rebrand Godot to RedotRandolph W. Aarseth II2024-10-115-15/+15
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux Editor tests workflow matrix Add Windows Editor w/ Mono workflow matrix Add Generate Glue Code job to Windows workflow Add Build GodotSharp job to Windows workflow Add godot compatibility version references Add Godot author info Add Godot version compatibility info Add Godot donor info Add Godot authors and donors to editor_about.cpp Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Merge pull request #95931 from pafuent/adding_packet_peer_testsRémi Verschelde2024-10-011-0/+204
|\ | | | | | | Add unit tests for `PacketPeer`
| * Add unit tests for PacketPeerPablo Andres Fuente2024-10-011-0/+204
| | | | | | | | Partially fixes #43440
* | Add unit tests for StreamPeer and StreamPeerBufferPablo Andres Fuente2024-10-012-0/+474
|/ | | | Partially fixes #43440
* Cleanup of raw `nullptr` checks with `Ref`A Thousand Ships2024-08-311-1/+1
| | | | Using `is_valid/null` over checks with `nullptr` or `ERR_FAIL_NULL` etc.
* Ability to convert native engine types to JSON and back.K. S. Ernest (iFire) Lee2024-08-291-0/+160
| | | | | | Implements support for all engine types in JSON encoding/decoding Co-Authored-By: Juan <reduzio@gmail.com> Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
* Fix Image CowData crash when baking large lightmapsHugo Locurcio2024-07-191-6/+6
| | | | | | | | | | | This switches to 64-bit integers in select locations of the Image class, so that image resolutions of 16384×16384 (used by lightmap texture arrays) can be used properly. Values that are larger should also work. VRAM compression is also supported, although most VRAM-compressed formats are limited to individual slices of 16384×16384. WebP is limited to 16383×16383 due to format limitations.
* [Tests] Fix various unit tests on minimal buildsA Thousand Ships2024-07-182-0/+14
|
* Use subfolder for temporary test fileskobewi2024-06-053-10/+10
|
* Suppressed expected errors for uncached resources.killzebug2024-04-221-0/+5
|
* Add unit test for resolve_hostnameRevoluPowered2024-04-101-0/+51
|
* Core: Add typed array support for binary serializationDanil Alexeev2024-03-201-9/+69
|
* Fix some additional errors with 3D disabledA Thousand Ships2024-02-231-1/+4
| | | | | | | | | * Disabled 2D navigation tests as they do not work * Disabled tests for primitive meshes * Unbound some `Mesh` methods that rely on 3D resources * Unexposed `World3D` as it depends on physics (and isn't useful) * Unexposed some `Viewport` vrs related properties that had unexposed methods
* Fix running tests in template buildsA Thousand Ships2024-02-221-0/+3
|
* Added error to catch conversion on invalid imagersburke42023-12-101-0/+23
|
* Fix errors when testing `Resource`A Thousand Ships2023-09-091-2/+2
| | | | | Replaces `get_meta` with `has_meta` for cases where the meta is expected to be empty.
* Revert "Implement loading DDS textures at run-time"clayjohn2023-08-291-10/+0
| | | | This reverts commit 34ab1c8a36e61b386c210fb908b9ebfa86513149.
* SCons: Disable C++ exception handlingRémi Verschelde2023-08-161-4/+2
| | | | | | | | | | | | | | | | | | | | Upon investigating the extremely slow MSVC build times in #80513, I noticed that while Godot policy is to never use exceptions, we weren't enforcing it with compiler flags, and thus still included exception handling code and stack unwinding. This is wasteful on multiple aspects: - Binary size: Around 20% binary size reduction with exceptions disabled for both MSVC and GCC binaries. - Compile time: * More than 50% build time reduction with MSVC. * 10% to 25% build time reduction with GCC + LTO. - Performance: Possibly, needs to be benchmarked. Since users may want to re-enable exceptions in their own thirdparty code or the libraries they compile with Godot, this behavior can be toggled with the `disable_exceptions` SCons option, which defaults to true.
* Merge pull request #79980 from bruvzg/fix_test_str_errsRémi Verschelde2023-08-091-4/+6
|\ | | | | | | [String] Fix Unicode parsing error message encoding and related JSON tests.
| * [String] Fix Unicode parsing error message encoding and related JSON tests.bruvzg2023-07-281-4/+6
| |
* | Implement loading DDS textures at run-timeMarcin Nowak2023-07-311-0/+10
|/
* Fix crash when saving resources with circular referencesMaxim Kulkin2023-07-141-0/+52
| | | | | | | | When saving resources, marking of already seen resources was done too late, causing infinite loop traversing referenced resources and eventual stack overflow. The change marks traversed resource before descending to it's children, thus when this resource is encountered again, it is already marked as seen and traversal stops.
* Merge pull request #74238 from bitsawer/fix_image_convertYuri Sizov2023-07-121-0/+80
|\ | | | | | | Fix `Image.convert()` overwriting custom mipmaps
| * Fix Image.convert() overwriting custom mipmapsbitsawer2023-03-021-0/+80
| |
* | Disallow invalid escape sequences in JSON.parseRedMser2023-06-301-0/+84
| |
* | Add HTTPClient unit testsangel-7212023-06-211-0/+106
| |
* | Improve error reporting when parsing CSV translation fileandybarcia2023-06-191-4/+6
| | | | | | | | | | | | | | | | | | Fixes #46682. Also fix unit test suite to separate generic FileAccess CSV testing from using CSV as translation. And add more CSV translation tests. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | Standardize and Optimize blue robot SVGMewPurPur2023-06-121-2/+2
| | | | | | | | Co-authored-by: Andre Vallestero <39736205+AndreVallestero@users.noreply.github.com>
* | Grayscale fix for Image::premultiply_alpha() and Image::convert(FORMAT_L8) ↵Kory Postma2023-05-271-0/+21
|/ | | | while using REC.709, with added test case
* Fail instead of segfaulting in IO testsmyaaaaaaaaa2023-01-312-0/+9
|
* [GDExtension] Expose some low level functions and String operators.bruvzg2023-01-191-1/+1
|
* One Copyright Update to rule them allRémi Verschelde2023-01-058-232/+232
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* [Tests] Replace Math::is_equal_approx with == and doctest::ApproxHendrik Brucker2022-11-051-1/+1
|
* Rename Image's `get_rect` to `get_region`Micky2022-11-011-1/+1
| | | | Also renames its parameter to from "rect" to "region".
* Change all WEBP strings and comments to WebPDeeJayLSP2022-10-281-2/+2
|
* Fix parsing of XML CDATA and add test casesHaoyu Qiu2022-09-091-0/+164
|
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-294-13/+13
|
* Tests: Silence some intentional errorsRémi Verschelde2022-08-041-0/+2
| | | | Also fix printing messages in ClassDB test.
* File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-0/+23
| | | | | | | | | | | | This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.
* Swap arguments of ResourceSaver.save()kobewi2022-07-291-2/+2
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-252-3/+4
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.