opensocsysarch / CoreGenPortal

OpenSoC System Architect CoreGen Portal Graphical User Interface
http://www.systemarchitect.tech/
Apache License 2.0
1 stars 0 forks source link

Complete Cache Edit Window Sad Path #31

Closed fconlon closed 5 years ago

fconlon commented 5 years ago

Criteria 1

Given:

When:

Then:

Criteria 2

Given:

When:

Then:

Criteria 3

Given:

When:

Then:

Criteria 4

Given:

When:

Then:

Criteria 5

Given:

When:

Then:

fconlon commented 5 years ago

Noticed that child cache is not the same pointer as the cache that is returned by Getting cache by name. Is there a reason for that?

jleidel commented 5 years ago

It depends on what you're trying to do with it and how the cache is configured.

jleidel commented 5 years ago

I would suggest comparing the names rather than the raw pointers. The names are required to be kept unique

fconlon commented 5 years ago

I ended up comparing names. Now I'm having an issue where under very specific, but not unreasonable conditions, the child cache isn't being added. If the user tries to add an invalid or cycle cache as a child then adds a valid cache it won't add the cache. I'm gonna spend about 30 more min on it and if I can't figure it out then I'm going to close this issue and open a bug issue. At the moment though criteria 5 is working according to the way it is written here.

fconlon commented 5 years ago

Commit f1bd0c46a69addf78d290a76046bc6e2ec13b643 adds functionality for criteria 5. Closing this issue and opening a bug issue for previously mentioned bug