-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial profile changes #180
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't duplicate huge portions of the test code just to support a different algorithm. It should be fairly simple to just refactor a couple spots to use different request/response structures.
43082cd
to
e5dca32
Compare
verification/emulator.go
Outdated
var i int | ||
for i = 0; i < len(buf); i++ { | ||
fmt.Print(buf[i]) | ||
fmt.Print(",") | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Should be removed
verification/verification_test.go
Outdated
for i := 0; i < len(support_needed); i++ { | ||
support := reflect.Indirect(value).FieldByName(support_needed[i]) | ||
if !support.Bool() { | ||
return nil, errors.New("Error in creating dpe instances - supported feature is not enabled in emulator") | ||
} | ||
} | ||
var instance TestDPEInstance = &DpeEmulator{exe_path: *target_exe} | ||
instance.SetSupport(support) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support
cannot be set on the emulator. Either the target supports what is needed or it doesn't. So I think this line can be removed and then the SetSupport target API can be removed.
This Pr contains the initial changes for testing profile command.