microsoft/RecursiveExtractor

Improve tests to validate the correct contents of extracted files

Open

#104 ouverte le 20 déc. 2022

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)C# (36 forks)auto 404
enhancementgood first issuetest

Métriques du dépôt

Stars
 (218 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Currently the tests primarily check that the correct number of files are returned from extraction commands. However, as the issue identified in #102 shows this can be insufficient in cases where the underlying library may not be threadsafe (for example). In such cases the tests can still succeed, finding the correct number of files, but their contents may be incomplete. We should develop additional tests that verify for each file type we support that the contents + sizes of each file are correct. Perhaps the easiest method would be with a hash of the contents of the extracted stream.

Guide contributeur