Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simuDAtor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
simuDAtor
Commits
559f7150
Commit
559f7150
authored
10 months ago
by
Martin Högstedt
Browse files
Options
Downloads
Patches
Plain Diff
forgot to make changes in tests aswell as add the correct slot for breakpoint
parent
a454d235
No related branches found
No related tags found
1 merge request
!23
Added slots to non-gui modules
Pipeline
#132142
failed
10 months ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/simudator/core/breakpoint.py
+1
-1
1 addition, 1 deletion
src/simudator/core/breakpoint.py
test/test_core/test_mux.py
+2
-4
2 additions, 4 deletions
test/test_core/test_mux.py
with
3 additions
and
5 deletions
src/simudator/core/breakpoint.py
+
1
−
1
View file @
559f7150
class
Breakpoint
:
__slots__
=
"
_
is_enabled
"
__slots__
=
"
is_enabled
"
"""
Base class for beakpoints, intended to be subclassed.
...
...
This diff is collapsed.
Click to expand it.
test/test_core/test_mux.py
+
2
−
4
View file @
559f7150
...
...
@@ -38,7 +38,6 @@ def test_get_state():
assert
state
[
"
name
"
]
==
"
Mux
"
assert
state
[
"
value
"
]
==
7
assert
state
[
"
bit_length
"
]
==
5
assert
state
[
"
mask
"
]
==
31
def
test_set_state
():
...
...
@@ -58,9 +57,8 @@ def test_set_state():
mux
.
set_state
(
state
)
assert
mux
.
name
==
"
Mux
"
assert
mux
.
value
==
6
assert
mux
.
bit_length
==
2
assert
mux
.
mask
==
3
assert
mux
.
_value
==
6
assert
mux
.
_bit_length
==
2
def
test_writing_to_output
():
...
...
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