forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xtask: Obfuscate SPDX tags in xtask code
... to stop the reuse tool from getting confused.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,9 +125,9 @@ fn test_license_tag_c_style() { | |
let source = format!( | ||
r#"// Copyright © something <[email protected]> | ||
foobar | ||
// SPDX-License-Identifier: {} | ||
// SP{}-License-Identifier: {} | ||
blah"#, | ||
EXPECTED_SPDX_EXPRESSION | ||
"DX", EXPECTED_SPDX_EXPRESSION | ||
); | ||
let test_source = SourceFileWithTags::new(&source, &style); | ||
assert_eq!( | ||
|
@@ -142,10 +142,10 @@ blah"# | |
let source = format!( | ||
r#"// Copyright © something <[email protected]> | ||
foobar | ||
// SPDX-License-Identifier: {} | ||
// SP{}-License-Identifier: {} | ||
blah"#, | ||
EXPECTED_SPDX_EXPRESSION | ||
"DX", EXPECTED_SPDX_EXPRESSION | ||
); | ||
let test_source = SourceFileWithTags::new(&source, &style); | ||
assert_eq!( | ||
|
@@ -194,10 +194,10 @@ fn test_license_tag_hash() { | |
let source = format!( | ||
r#"# Copyright © something <[email protected]> | ||
foobar | ||
# SPDX-License-Identifier: {} | ||
# SP{}-License-Identifier: {} | ||
blah"#, | ||
EXPECTED_SPDX_EXPRESSION | ||
"DX", EXPECTED_SPDX_EXPRESSION | ||
); | ||
let test_source = SourceFileWithTags::new(&source, &style); | ||
assert_eq!( | ||
|
@@ -227,10 +227,10 @@ fn test_license_tag_dotdot() { | |
let source = format!( | ||
r#".. Copyright © something <[email protected]> | ||
foobar | ||
.. SPDX-License-Identifier: {} | ||
.. SP{}-License-Identifier: {} | ||
blah"#, | ||
EXPECTED_SPDX_EXPRESSION | ||
"DX", EXPECTED_SPDX_EXPRESSION | ||
); | ||
let test_source = SourceFileWithTags::new(&source, &style); | ||
assert_eq!( | ||
|
@@ -338,7 +338,7 @@ impl<'a> LicenseHeader<'a> { | |
|
||
const EXPECTED_SPDX_EXPRESSION: &str = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"; | ||
const EXPECTED_SPDX_ID: &str = | ||
const_format::concatcp!("SPDX-License-Identifier: ", EXPECTED_SPDX_EXPRESSION); | ||
const_format::concatcp!("SP", "DX-License-Identifier: ", EXPECTED_SPDX_EXPRESSION); // Do not confuse the reuse tool | ||
|
||
const EXPECTED_HEADER: LicenseHeader<'static> = | ||
LicenseHeader(&["Copyright © SixtyFPS GmbH <[email protected]>", EXPECTED_SPDX_ID]); | ||
|