Jan Danielzick BodgeMaster
Loading Heatmap…

BodgeMaster opened issue BodgeMaster/FOSS-VG#45

lib/nbt: create a unit test for the NBT validator

2022-08-15 10:58:11 +02:00

BodgeMaster pushed to master at BodgeMaster/FOSS-VG

  • 25bec4c587 lib/nbt: Validator: Fix bytes not being added up correctly in multiple places
  • 589cf1ddaf lib/nbt: NBT validator: Fix wrong function declaration in the header, fix not using the currentPosition variable when accessing data
  • 884a5239c6 lib/nbt: fix a bug in NBT::helper::readString() which caused it to asuume that dataSize is the size of the string
  • 9190cad80d lib/nbt: finish implementation of validateRawNBTData() and fix a critical macro-induced bug
  • a862590370 lib/nbt: Start implementing the NBT validator
  • Compare 6 commits »

2022-08-15 10:53:15 +02:00

BodgeMaster commented on issue BodgeMaster/FOSS-VG#43

test/nbt_read_write_helpers: Insufficient unit tests

Okay, it appears that the error stems from a misunderstanding in how the helpers are supposed to work more than no test catching it... One of the tests fails now that I have fixed the…

2022-08-15 10:07:34 +02:00

BodgeMaster opened issue BodgeMaster/FOSS-VG#44

lib/error: Add some way to keep track of the origin of an error

2022-08-15 09:43:48 +02:00

BodgeMaster opened issue BodgeMaster/FOSS-VG#43

test/nbt_read_write_helpers: Insufficient unit tests

2022-08-15 09:35:15 +02:00

BodgeMaster opened issue BodgeMaster/FOSS-VG#42

lib/nbt: Spec extension to allow for different types of top level tags

2022-08-15 01:04:28 +02:00

BodgeMaster pushed to master at BodgeMaster/FOSS-VG

  • c9ec524db1 test/nbt_size_helpers: Implement tests for valid input
  • 73ae58e522 test/assert: Add line number to assertion failed message
  • acc19ae100 lib/nbt: Change behavior of totalTagSize to treat encounters of compounds and lists as errors
  • 149285c357 lib/nbt: Finish implementing containedDataLength, rename nextTagTotalSize->totalTagSize and nextTagDataLength->containedDataLength
  • 0c92bdf8fd test/nbt_size_helpers: begin adding unit tests for lib/nbt's new nextTag size helpers
  • Compare 17 commits »

2022-08-13 17:37:22 +02:00

BodgeMaster pushed to BodgeMaster-unfinished at BodgeMaster/FOSS-VG

  • c9ec524db1 test/nbt_size_helpers: Implement tests for valid input
  • 73ae58e522 test/assert: Add line number to assertion failed message
  • acc19ae100 lib/nbt: Change behavior of totalTagSize to treat encounters of compounds and lists as errors
  • 149285c357 lib/nbt: Finish implementing containedDataLength, rename nextTagTotalSize->totalTagSize and nextTagDataLength->containedDataLength
  • 0c92bdf8fd test/nbt_size_helpers: begin adding unit tests for lib/nbt's new nextTag size helpers
  • Compare 39 commits »

2022-08-13 17:34:49 +02:00

BodgeMaster pushed to BodgeMaster-unfinished at BodgeMaster/FOSS-VG

  • 3ba4171da3 test/nbt_size_helpers: Implement tests for valid input
  • cecb2381b0 test/assert: Add line number to assertion failed message
  • 2a8082139a lib/nbt: Change behavior of totalTagSize to treat encounters of compounds and lists as errors
  • Compare 3 commits »

2022-08-13 17:24:26 +02:00

BodgeMaster opened issue BodgeMaster/FOSS-VG#41

test/nbt_size_helpers: Add tests for errors and edge cases

2022-08-13 17:21:48 +02:00

BodgeMaster pushed to BodgeMaster-unfinished at BodgeMaster/FOSS-VG

  • b63c1398a6 lib/nbt: Finish implementing containedDataLength, rename nextTagTotalSize->totalTagSize and nextTagDataLength->containedDataLength
  • 7bdc3ca7b6 test/nbt_size_helpers: begin adding unit tests for lib/nbt's new nextTag size helpers
  • cf0f43ff0e lib/nbt: Begin implementing nextTagDataLength
  • 72e1420493 lib/nbt: Fix a bug in nextTagTotalSize and significantly improve readability by removing redundant code
  • acd13c94f0 scripts/test: Clean old unit tests before building new ones to avoid confusion
  • Compare 7 commits »

2022-08-13 15:59:20 +02:00

BodgeMaster commented on issue BodgeMaster/FOSS-VG#40

Build system: Figure out unit testing for CLI applications and networking

I added a facility for running test scripts to `test.sh` on my branch. Will be merged back with the rest of my changes when they are done.

2022-08-13 13:40:03 +02:00

BodgeMaster closed issue BodgeMaster/FOSS-VG#40

Build system: Figure out unit testing for CLI applications and networking

2022-08-13 13:40:03 +02:00

BodgeMaster pushed to master at BodgeMaster/FOSS-VG

  • 8048dc8891 tools/hexnet: Put the new usage generator to use and remove prefixes for IPv4 and IPv6

2022-08-12 12:35:05 +02:00

BodgeMaster commented on issue BodgeMaster/FOSS-VG#30

lib/cli: help text generator

Implemented by @Shwoomple

2022-08-12 12:02:06 +02:00

BodgeMaster closed issue BodgeMaster/FOSS-VG#30

lib/cli: help text generator

2022-08-12 12:02:06 +02:00

BodgeMaster pushed to master at BodgeMaster/FOSS-VG

  • a1f16e6f6b lib/cli: Fix the usage text generator not dealing well with absent sections

2022-08-12 12:00:21 +02:00

BodgeMaster pushed to BodgeMaster-unfinished at BodgeMaster/FOSS-VG

  • c0b838d1f2 scripts/test: change unit test file names

2022-08-12 08:39:17 +02:00

BodgeMaster commented on issue BodgeMaster/FOSS-VG#37

lib/nbt: test data

added synthetic test files that can be used to exercise the parser: - a file with all tag types - a file with a bunch of nested compounds and lists

2022-08-12 08:18:56 +02:00

BodgeMaster pushed to BodgeMaster-unfinished at BodgeMaster/FOSS-VG

  • d402d4e057 lib/nbt: Move the functions for getting tag sizes into the helper namespace, give up on handling lists the same as all other tags
  • f2ae84c062 lib/nbt: Various minor fixes to get the program to compile properly
  • 1ee8d47e2c lib/nbt: remove a function used to get the next tag type which introduced unnecessary complexity
  • 3741d844f1 Environment: don't unset PROJECT_BASE_DIR which is needed for the aliases to work properly
  • 72dffde7c9 test/nbt*: rename files, move byte tag object test from helper test file into its own file
  • Compare 5 commits »

2022-08-12 08:01:15 +02:00