[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-finance-apps
Subject: GSoc GDB pretty printers: Automatic testing and printing class pointers
From: Da Viper <yerimyah1 () gmail ! com>
Date: 2021-06-17 15:28:24
Message-ID: CAEtKUfimyyfAKW2MP-HOzjg13CwM-d=FmiJQNMdZrMd5LxJziw () mail ! gmail ! com
[Download RAW message or body]
Hello there,
This is a continuation of the chat from the telegram group
- Manual Test
The way i perform manual test is that, I create a cpp file then instantiate
the class with all possible constructors and input the set a break point at
the bottom to compare all the output to the given input
i am not sure of a way to make this automatic as it would be easier to know
when new changes affect existing code instead of performing all the test
for the hundred of classes
- Printing Classes instantiated as pointer
for example if we have a qstring created like this
`QString qsst("this is another string");`
`QString *thePtr = &qsst;`
if i am to create a printer for qstring it does not apply the printer for
the variable `thePtr`
i am not sure how to fix the problem ( however the same also happens for
`std::string` but it is also included the value later)
[Attachment #3 (text/html)]
<div dir="ltr">Hello there, <div><br></div><div>This is a continuation of the chat \
from the telegram group </div><div><br></div><div>- Manual Test </div><div>The way \
i perform manual test is that, I create a cpp file then instantiate the class with \
all possible constructors and input the set a break point at the bottom to compare \
all the output to the given input <br>i am not sure of a way to make this \
automatic as it would be easier to know when new changes affect existing code instead \
of performing all the test for the hundred of classes \
</div><div><br></div><div><br></div><div>- Printing Classes instantiated as pointer \
</div><div>for example if we have a qstring created like this \
</div><div><br></div><div>`QString qsst("this is another string");`<br> \
`QString *thePtr = &qsst;`<br></div><div><br></div><div>if i am to create a \
printer for qstring it does not apply the printer for the variable `thePtr` \
</div><div>i am not sure how to fix the problem ( however the same also happens for \
`std::string` but it is also included the value later) </div><div><br></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic