Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TranSSD-Python
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Justus Müller
TranSSD-Python
Commits
714e65f0
Commit
714e65f0
authored
Jun 5, 2024
by
Justus Müller
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Split very long lines
parent
766cdaf3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tests/hash_test.py
+2
-1
2 additions, 1 deletion
src/tests/hash_test.py
src/tests/slack_test.py
+1
-1
1 addition, 1 deletion
src/tests/slack_test.py
with
3 additions
and
2 deletions
src/tests/hash_test.py
+
2
−
1
View file @
714e65f0
...
@@ -37,7 +37,8 @@ class HashTest(DecisionTest):
...
@@ -37,7 +37,8 @@ class HashTest(DecisionTest):
# remember a cluster of a random file
# remember a cluster of a random file
# if the cluster is set to zero immediately after deletion,
# if the cluster is set to zero immediately after deletion,
# the likelyhood of DRAT or DZAT is very high
# the likelyhood of DRAT or DZAT is very high
compare_cluster_number
:
int
=
self
.
drive_handle
.
get_clusters_for_file
(
f
'
{
self
.
drive_handle
.
get_path
()
}
demo
\\
t5
\\
000503.text
'
)[
0
]
demo_file_path
:
str
=
f
'
{
self
.
drive_handle
.
get_path
()
}
demo
\\
t5
\\
000503.text
'
compare_cluster_number
:
int
=
self
.
drive_handle
.
get_clusters_for_file
(
demo_file_path
)[
0
]
compare_cluster_values
:
bytes
=
self
.
drive_handle
.
read_cluster
(
compare_cluster_number
)
compare_cluster_values
:
bytes
=
self
.
drive_handle
.
read_cluster
(
compare_cluster_number
)
print
(
colored
(
"
[HashTest] Deleting the demo files.
"
,
'
light_grey
'
))
print
(
colored
(
"
[HashTest] Deleting the demo files.
"
,
'
light_grey
'
))
...
...
This diff is collapsed.
Click to expand it.
src/tests/slack_test.py
+
1
−
1
View file @
714e65f0
...
@@ -85,7 +85,7 @@ class SlackTest(DecisionTest):
...
@@ -85,7 +85,7 @@ class SlackTest(DecisionTest):
print
(
colored
(
"
[SlackTest] All bytes are zero!
"
,
"
red
"
))
print
(
colored
(
"
[SlackTest] All bytes are zero!
"
,
"
red
"
))
print
(
colored
(
"
[SlackTest] Cleaning up files.
"
,
"
light_grey
"
))
print
(
colored
(
"
[SlackTest] Cleaning up files.
"
,
"
light_grey
"
))
self
.
drive_handle
.
delete_file
(
f
'
{
self
.
d
ri
v
e_
handle
.
get_path
()
}
transsd-slacktest-overwrite
'
)
self
.
drive_handle
.
delete_file
(
overw
ri
t
e_
file_path
)
self
.
drive_handle
.
flush_cache
()
self
.
drive_handle
.
flush_cache
()
print
(
colored
(
"
[SlackTest] Slack test completed.
"
,
"
light_blue
"
))
print
(
colored
(
"
[SlackTest] Slack test completed.
"
,
"
light_blue
"
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment