Commit graph

1205 commits

Author SHA1 Message Date
lishuo 1f46217a6c fix failed ci 2021-11-29 18:43:33 +08:00
lishuo a4af4a70eb fix typo. skip data tests for idna if feature not enabled. opt out unicode_serialziation for Origin if idna not enabled 2021-11-18 00:23:25 +08:00
lishuo fc7dfa597f modify per comment, add a note in document for idna feature 2021-11-17 11:28:20 +08:00
lishuo 55322758aa init commit to make idna optional 2021-11-16 18:41:53 +08:00
Valentin Gosu 0840723452 Update data-url version to v0.1.1 2021-11-09 10:15:58 +01:00
Valentin Gosu d673c4d5e2
Merge pull request #710 from striezel-stash/typos
fix some typos
2021-05-07 15:45:33 +02:00
Dirk Stolle 004af2fe49 fix some typos 2021-05-07 15:39:01 +02:00
Valentin Gosu 6c22912c31
Merge pull request #709 from BramBonne/bump-version
Bump minor version number
2021-05-06 12:16:13 +02:00
Bram Bonné 0707a58b91 Bump minor version number
This allows Android's automatic importer to pick up the new tests.
2021-05-04 15:05:16 +02:00
Valentin Gosu 991e438ff1
Merge pull request #708 from BramBonne/test-syntax-violations
Add tests for SyntaxViolation callback types
2021-05-04 11:36:43 +02:00
Bram Bonné 744b76332c Remove stray comma 2021-05-03 17:23:31 +02:00
Bram Bonné 5793b7ef14 Check parsing result in SyntaxViolation test 2021-05-03 17:07:34 +02:00
Bram Bonné 0659871a26 Add tests for SyntaxViolation callback types
New test coverage:
|| src/parser.rs: 697/848 +1.7688679245283057%
2021-05-03 16:52:18 +02:00
Valentin Gosu c6f60fe5ff
Merge pull request #668 from sdroege/make-relative
Add Url::make_relative() as the inverse of Url::join()
2021-05-03 14:22:06 +02:00
Sebastian Dröge d51cec4803 Add Url::make_relative() as the inverse of Url::join()
This creates a relative URL from a base URL and another absolute URL.

Fixes https://github.com/servo/rust-url/issues/666
2021-05-03 15:09:01 +03:00
Valentin Gosu 77fb472619
Merge pull request #703 from BramBonne/slicing-tests
Increase slicing test coverage
2021-05-03 11:10:27 +02:00
Valentin Gosu ea2342e182
Merge pull request #705 from BramBonne/test-quirks
Increase quirks test coverage
2021-04-28 10:56:46 +02:00
Bram Bonné 548c15ba5e Increase quirks test coverage
Add unit tests for `set_href()`, `domain_to_ascii()` and
`domain_to_unicode()`.

New coverage:
|| src/quirks.rs: 121/126 +10.317460317460325%
2021-04-27 10:42:45 +02:00
Valentin Gosu d85ac13a02
Merge pull request #704 from BramBonne/library-tests
Increase test coverage
2021-04-26 19:01:58 +02:00
Bram Bonné a012579897 Handle set_ip_host failures 2021-04-26 18:42:51 +02:00
Bram Bonné ed4829bd4a Increase test coverage
Add unit tests for `to_socket_addrs()`, `set_ip_host()`,
various getters and `no_base_url`-style URLs.

New test coverage:
|| ../idna/src/lib.rs: 4/6 +33.33333333333333%
|| ../idna/src/uts46.rs: 158/299 +2.341137123745818%
|| src/lib.rs: 515/710 +5.7746478873239475%
|| src/origin.rs: 32/37 +40.54054054054054%
|| src/parser.rs: 681/848 +0.1179245283018826%
2021-04-26 18:31:24 +02:00
Bram Bonné 912ddd1cd4 Increase slicing test coverage
Add unit tests for all `url::Position` combinations.

New test coverage:
|| src/slicing.rs: 53/58 +56.896551724137936%
2021-04-26 14:22:32 +02:00
Valentin Gosu 12310f2aab
Merge pull request #702 from BramBonne/origin_tests
Increase Origin test coverage
2021-04-26 13:33:48 +02:00
Bram Bonné 90e4f50850 Format Origin unit tests 2021-04-26 12:46:56 +02:00
Bram Bonné 3222b34cf4 Add additional unicode URLs 2021-04-26 12:12:56 +02:00
Bram Bonné be4809e903 Increase Origin test coverage
Add unit tests for unicode_serialization() and is_tuple().

New test coverage:
|| ../idna/src/lib.rs: 4/6 +33.33333333333333%
|| ../idna/src/uts46.rs: 158/299 +2.341137123745818%
|| src/origin.rs: 32/37 +40.54054054054054%
|| src/parser.rs: 681/848 +0.1179245283018826%
2021-04-26 12:05:15 +02:00
Simon Sapin 837538c549 idna: Bump to version 0.2.3 2021-04-16 11:16:50 +02:00
Valentin Gosu 46d22ded94
Merge pull request #699 from djc/debug-cannot-be-a-base
Add cannot_be_a_base field to Url's Debug representation (fixes #693)
2021-04-13 09:57:14 +02:00
Dirkjan Ochtman 1ad022d85f Add cannot_be_a_base field to Url's Debug representation (fixes #693) 2021-04-12 22:01:13 +02:00
Valentin Gosu 3eb936b8cf
Merge pull request #696 from DavidKorczynski/patch-1
Fix breaking OSS-Fuzz coverage build
2021-04-09 09:32:34 +02:00
DavidKorczynski a70882cd02
Fix breaking OSS-Fuzz coverage build 2021-04-08 15:38:08 +01:00
Valentin Gosu e5e482926a Update issue templates 2021-04-07 14:25:15 +02:00
Valentin Gosu 73042861be
Merge pull request #694 from djc/fix-unicode-before-delimiter
idna: fix hang with unicode character before delimiter (fixes #692)
2021-04-07 10:21:15 +02:00
Dirkjan Ochtman ce37627f6d url: more regressed clippy suppressions
Regressed in 6fd1e87de6.
2021-04-06 13:31:14 +02:00
Dirkjan Ochtman d39870e927 Reinstate suspicious_operation_groupings suppression
This was removed in 6fd1e87de6.
2021-04-06 13:14:28 +02:00
Dirkjan Ochtman 1416aca31d Remove unnecessary return statement 2021-04-06 12:07:36 +02:00
Dirkjan Ochtman 6e4b6282c6 idna: fix hang with unicode character before delimiter (fixes #692)
Regressed in 5bc0e60601.
2021-04-06 12:01:09 +02:00
Valentin Gosu 6fd1e87de6 Fix clippy lints 2021-03-26 09:28:37 +01:00
Valentin Gosu c34f2248f1
Merge pull request #686 from dtantsur/into-string
url: deprecate into_string for Into<String> (fixes #685)
2021-03-26 09:06:51 +01:00
Valentin Gosu d530255b95
Merge pull request #691 from grego/master
Use collections from the alloc crate in percent_encoding
2021-03-26 09:06:10 +01:00
Maros Grego d4b4390289 Lint 2021-03-10 10:30:15 +01:00
Maros Grego fd34ccb475 Add alloc dependencies behind an optional alloc feature 2021-03-10 10:02:22 +01:00
Maros Grego 5fac16f1a6 Remove the beef implementation 2021-03-10 09:08:32 +01:00
Maros Grego 0229743ca5 Use collections from the alloc crate in percent_encoding 2021-03-10 08:53:53 +01:00
Dmitry Tantsur fc54ffd9f7 url: deprecate into_string for Into<String> (fixes #685) 2021-02-22 13:51:39 +01:00
Valentin Gosu 89876ffc6e
Merge pull request #681 from kevaundray/patch-1
Fix typos
2021-02-20 21:30:46 +01:00
Manish Goregaokar ea7a69e9d6
Merge pull request #684 from j-vanderstoep/master
Update to 1.0.1
2021-02-19 00:56:44 -08:00
Jeff Vander Stoep aab805b747 Update to 1.0.1
Include commits made since the update to 1.0.0 such as:
https://github.com/servo/rust-url/commit/47b6555

Which is needed for building the tests now included in:
https://github.com/servo/rust-url/pull/683/commits/5d0ee3a
2021-02-19 09:19:47 +01:00
Manish Goregaokar 7bb95a183d
Merge pull request #683 from servo/test-include
Add tests to url package; update to 2.2.1
2021-02-18 13:16:16 -08:00
Manish Goregaokar 5d0ee3a88d Add tests to url package; update to 2.2.1 2021-02-18 11:20:05 -08:00