Skip to content
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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

premalathak12
Copy link

This Pr contains the initial changes for testing profile command.

verification/emulator.go Outdated Show resolved Hide resolved
verification/go.mod Outdated Show resolved Hide resolved
verification/go.sum Outdated Show resolved Hide resolved
verification/verification_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@jhand2 jhand2 left a 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.

Comment on lines 135 to 140
var i int
for i = 0; i < len(buf); i++ {
fmt.Print(buf[i])
fmt.Print(",")
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should be removed

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)
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants