Skip to content

Commit aa28c94

Browse files
committed
Remove double space after $ in inline expectations tests
1 parent 501485b commit aa28c94

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

cpp/ql/test/library-tests/dataflow/models-as-data/tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void test_sources() {
7575
int e = localMadSource();
7676
sink(e); // $ ir
7777

78-
sink(MyNamespace::namespaceLocalMadSource()); // $ ir
78+
sink(MyNamespace::namespaceLocalMadSource()); // $ ir
7979
sink(MyNamespace::namespaceLocalMadSourceVar); // $ ir
8080
sink(MyNamespace::MyNamespace2::namespace2LocalMadSource()); // $ ir
8181
sink(MyNamespace::localMadSource()); // $ (the MyNamespace version of this function is not a source)

cpp/ql/test/library-tests/dataflow/taint-tests/taint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ void test_qualifiers()
450450
b.member = source();
451451
sink(b); // $ ir MISSING: ast
452452
sink(b.member); // $ ast,ir
453-
sink(b.getMember()); // $ MISSING: ir ast
453+
sink(b.getMember()); // $ MISSING: ir ast
454454

455455
c = new MyClass2(0);
456456

@@ -865,4 +865,4 @@ void test_iconv(size_t size) {
865865
size_t size_out;
866866
iconv(0, &s, &size, &p, &size_out);
867867
sink(*p); // $ ast,ir
868-
}
868+
}

java/ql/test/library-tests/frameworks/android/intent/TestStartBroadcastReceiverToIntent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static class SomeBroadcastReceiver extends BroadcastReceiver {
7979
// test method that receives an Intent as a parameter
8080
@Override
8181
public void onReceive(Context context, Intent intent) {
82-
sink(intent.getStringExtra("data")); // $ hasValueFlow=send hasValueFlow=send-as-user hasValueFlow=send-with-perm hasValueFlow=send-ordered hasValueFlow=send-ordered-as-user hasValueFlow=send-sticky hasValueFlow=send-sticky-as-user hasValueFlow=send-sticky-ordered hasValueFlow=send-sticky-ordered-as-user hasValueFlow=4-arg
82+
sink(intent.getStringExtra("data")); // $ hasValueFlow=send hasValueFlow=send-as-user hasValueFlow=send-with-perm hasValueFlow=send-ordered hasValueFlow=send-ordered-as-user hasValueFlow=send-sticky hasValueFlow=send-sticky-as-user hasValueFlow=send-sticky-ordered hasValueFlow=send-sticky-ordered-as-user hasValueFlow=4-arg
8383
}
8484
}
8585

python/ql/test/library-tests/ApiGraphs/py3/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import a3.b3 as m3 # $ use=moduleImport("a3").getMember("b3")
1010

11-
x3 = m3.blah3 # $ use=moduleImport("a3").getMember("b3").getMember("blah3")
11+
x3 = m3.blah3 # $ use=moduleImport("a3").getMember("b3").getMember("blah3")
1212

1313
from a4.b4 import c4 as m4 # $ use=moduleImport("a4").getMember("b4").getMember("c4")
1414

python/ql/test/library-tests/dataflow/coverage/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_list_comprehension():
106106

107107
def test_list_comprehension_flow():
108108
x = [y for y in [SOURCE]]
109-
SINK(x[0]) # $ flow="SOURCE, l:-1 -> x[0]"
109+
SINK(x[0]) # $ flow="SOURCE, l:-1 -> x[0]"
110110

111111

112112
def test_list_comprehension_inflow():

python/ql/test/library-tests/frameworks/ruamel.yaml/Decoding.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66
ruamel.yaml.load(payload, ruamel.yaml.Loader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
77

88
# Safe:
9-
ruamel.yaml.load(payload, ruamel.yaml.SafeLoader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML
9+
ruamel.yaml.load(payload, ruamel.yaml.SafeLoader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML
1010
ruamel.yaml.load(payload, Loader=ruamel.yaml.SafeLoader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML
1111
ruamel.yaml.load(payload, ruamel.yaml.BaseLoader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML
12-
ruamel.yaml.safe_load(payload) # $ decodeInput=payload decodeOutput=ruamel.yaml.safe_load(..) decodeFormat=YAML
12+
ruamel.yaml.safe_load(payload) # $ decodeInput=payload decodeOutput=ruamel.yaml.safe_load(..) decodeFormat=YAML
1313

1414
################################################################################
1515
# load_all variants
1616
################################################################################
1717

1818
# Unsafe:
19-
ruamel.yaml.load_all(payload) # $ decodeInput=payload decodeOutput=ruamel.yaml.load_all(..) decodeFormat=YAML decodeMayExecuteInput
19+
ruamel.yaml.load_all(payload) # $ decodeInput=payload decodeOutput=ruamel.yaml.load_all(..) decodeFormat=YAML decodeMayExecuteInput
2020

2121
# Safe:
22-
ruamel.yaml.safe_load_all(payload) # $ decodeInput=payload decodeOutput=ruamel.yaml.safe_load_all(..) decodeFormat=YAML
22+
ruamel.yaml.safe_load_all(payload) # $ decodeInput=payload decodeOutput=ruamel.yaml.safe_load_all(..) decodeFormat=YAML
2323

2424
################################################################################
2525
# C-based loaders with `libyaml`
2626
################################################################################
2727

2828
# Unsafe:
29-
ruamel.yaml.load(payload, ruamel.yaml.CLoader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
29+
ruamel.yaml.load(payload, ruamel.yaml.CLoader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
3030

3131
# Safe:
3232
ruamel.yaml.load(payload, ruamel.yaml.CSafeLoader) # $ decodeInput=payload decodeOutput=ruamel.yaml.load(..) decodeFormat=YAML

rust/ql/test/query-tests/security/CWE-312/test_logging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn test_log(harmless: String, password: String, encrypted_password: String) {
9797
info!("{}", m2); // $ Alert[rust/cleartext-logging]=m2
9898

9999
let m3 = format!("message = {}", password); // $ Source[rust/cleartext-logging]=m3
100-
info!("{}", m3); // $ Alert[rust/cleartext-logging]=m3
100+
info!("{}", m3); // $ Alert[rust/cleartext-logging]=m3
101101

102102
let mut m4 = String::new();
103103
write!(&mut m4, "message = {}", password); // $ MISSING: Source=m4

swift/ql/test/library-tests/dataflow/taint/libraries/nsstring.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func taintThroughInterpolatedStrings() {
203203

204204
sink(arg: try! NSString(contentsOfFile: sourceString(), encoding: 0)) // $ tainted=204
205205
sink(arg: try! NSString(contentsOfFile: sourceString(), usedEncoding: nil)) // $ tainted=205
206-
sink(arg: try! NSString(contentsOf: sourceURL(), encoding: 0)) // $ tainted=206
206+
sink(arg: try! NSString(contentsOf: sourceURL(), encoding: 0)) // $ tainted=206
207207
sink(arg: try! NSString(contentsOf: URL(string: sourceString())!, encoding: 0)) // $ tainted=207
208208
sink(arg: try! NSString(contentsOf: sourceURL(), usedEncoding: nil)) // $ tainted=208
209209
sink(arg: try! NSString(contentsOf: URL(string: sourceString())!, usedEncoding: nil)) // $ tainted=209

0 commit comments

Comments
 (0)