-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add TarEntry conversion constructors #70325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
carlossanlop
merged 47 commits into
dotnet:main
from
carlossanlop:TarConversionConstructors
Jun 21, 2022
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
ac4d898
ref: Conversion constructors
carlossanlop 9899220
src: Conversion constructors
carlossanlop 476bec1
tests: Conversion constructors
carlossanlop 4484202
src: Conversion constructor should call this instead of base
carlossanlop 45d87a0
tests: Verify unseekable stream data can be read after conversion
carlossanlop adf074e
Adjust _readerOfOrigin nullability in constructors.
carlossanlop c9002d1
Move most constructor work to the base class.
carlossanlop 42a000d
ref: Move TarFormat from TarReader to TarEntry
carlossanlop ac7ff62
ref: Move Format property from TarReader to TarEntry
carlossanlop a0a2d88
src: Move Format property from TarReader to TarEntry
carlossanlop 0a54727
tests: Move Format property from TarReader to TarEntry
carlossanlop 6de8f40
nit - Remove extra spacing in tests
carlossanlop b6f75cb
src: When converting, only transfer fields available in the new format.
carlossanlop 2daa87e
tests: Verify only supported fields are transferred when converting.
carlossanlop 247af82
Revert internal->private for magic and version
carlossanlop 270403c
Add boolean arg to PaxTarEntry method that adds atime and ctime
carlossanlop d405d4e
Make sure back and forth tests create firstt timestamp with a slight …
carlossanlop 7e79e57
Make _readerOfOrigin private again
carlossanlop ba4d394
src: Use UtcNow, not Now
carlossanlop e37c645
tests: Use UtcNow, not Now. Compare converted DateTimeOffset from dou…
carlossanlop f987f77
Address feedback for comments.
carlossanlop cd66da4
Add asserts that verify mtime has a non-default value when it is expe…
carlossanlop c61ce71
Adress feedback for setting field values in PosixTarEntry and TarEntr…
carlossanlop 0a39b22
Remove code that reads atime and ctime from extended attributes and s…
carlossanlop 948b3d7
Make sure that extended attributes always have an atime and a ctime w…
carlossanlop 131608f
Address feedback around timestamps in tests.
carlossanlop 1b82298
Add more tests for expected values in extended attributes after writi…
carlossanlop ed5ec9a
Reuse code for conversion tests.
carlossanlop c82f766
Change test comparisons of Assert.True with ">=" to use AssertExtensi…
carlossanlop 98e6191
Reduce number of dictionary newing, only do it when the contents are …
carlossanlop b7c1c83
Avoid returning dateTimeOffset != default, instead return true on suc…
carlossanlop 83888ba
Remove redundant assignment of format to header.
carlossanlop e958afd
Pass Dictionary<string,string> directly to make use of non-virtual Tr…
carlossanlop 81376fe
Add tests that verify the default writer format is utilized when call…
carlossanlop b865bf4
Add overload that takes long for converting number of seconds to Date…
carlossanlop c37e9e7
Address latest suggestions by eerhardt
carlossanlop 526b55a
Make sure dictionary is initialized once in PaxTarEntry constructor.
carlossanlop 2b3dff3
Reuse code for single conversion construction tests and back-n-forth …
carlossanlop f10d0bf
Invert verification of default case and TarEntryFormat.Unknown in swi…
carlossanlop a363c3f
Change "if dictionary is not null" to "Debug.Assert "dictionary is no…
carlossanlop cedf1a2
Conversion tests should also check expected values of ATime and CTime…
carlossanlop 30261f3
Chop long comment, remove another 'preferred default'.
carlossanlop f23d244
Make unseekable conversion tests theories to verify all writer formats.
carlossanlop 4e3e4a3
Set _prefix to Empty if other is not ustar or pax
carlossanlop 2d503fc
Rename TarWriter archiveFormat parameter to format
carlossanlop 411aefa
Compare datetime offsets only up to seconds
carlossanlop 767a5e8
Increase fixed point format specifier precision, use test comparison …
carlossanlop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.