-
-
When running the unit tests I get some "still reachable" memory in valgrind. Not sure if that's a real issue.
-
-
libpurple/purpletags.h (Diff revision 1) Build warning on this line:
Warning: Purple: purple_tags_get_all: return value: Missing (element-type) annotation
-
libpurple/purpletags.h (Diff revision 1) Build warning on this line:
../libpurple/purpletags.h:139: Warning: Purple: missing ":" at column 26: * @separator: (nullable) A string to separate the items. ^
Create the PurpleTags object for handling tags
Review Request #1777 — Created Sept. 17, 2022 and submitted
Create the PurpleTags object for handling tags
Ran the unit tests.
Summary | ID |
---|---|
eda5179fe1aabcb635b4b007fc46c37ec3a9f8a1 |
Description | From | Last Updated |
---|---|---|
Build warning on this line: Warning: Purple: purple_tags_get_all: return value: Missing (element-type) annotation |
ivanhoe | |
Build warning on this line: ../libpurple/purpletags.h:139: Warning: Purple: missing ":" at column 26: * @separator: (nullable) A string to separate … |
ivanhoe | |
Double 'the'. Also 'value of the first tag' |
QuLogic | |
Align wrapped text. |
QuLogic | |
Extra space. |
QuLogic | |
Do we want a gboolean *found here, to avoid two loops? Or maybe add another function named purple_tags_lookup which returns … |
QuLogic | |
Might also want to check for foo lookup with a foobar tag, as you noticed it was (temporarily) broken on … |
QuLogic | |
existent |
QuLogic | |
existent |
QuLogic | |
Should be g_assert_cmpstr. |
QuLogic | |
Should be g_assert_cmpstr. |
QuLogic | |
Should be g_assert_cmpstr. |
QuLogic | |
This loop should also check that you didn't get more or less tags than values. |
QuLogic | |
Currently only checking that there are not more tags than values, but not vice versa. |
QuLogic | |
This comparison is off-by-one as you have NULL in values, but that's not added as a tag. |
QuLogic | |
Should be g_assert_cmpstr. |
QuLogic | |
Should be g_assert_cmpstr. |
QuLogic | |
Should be g_assert_cmpstr. |
QuLogic |
Change Summary:
Address issues
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+1188) |
-
-
-
-
libpurple/purpletags.c (Diff revision 2) Do we want a
gboolean *found
here, to avoid two loops?Or maybe add another function named
purple_tags_lookup
which returns the value and whether it was found? -
-
-
-
-
-
libpurple/tests/test_tags.c (Diff revision 2) This loop should also check that you didn't get more or less tags than values.
-
-
-
Change Summary:
address issues, replace purple_tags_exist with purple_tags_lookup, have purple_tags_get use purple_tags_lookup.
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+1224) |
-
-
-
libpurple/tests/test_tags.c (Diff revisions 2 - 3) Might also want to check for
foo
lookup with afoobar
tag, as you noticed it was (temporarily) broken on stream. -
libpurple/tests/test_tags.c (Diff revisions 2 - 3) Currently only checking that there are not more tags than values, but not vice versa.
-
libpurple/tests/test_tags.c (Diff revisions 2 - 3) This comparison is off-by-one as you have
NULL
invalues
, but that's not added as a tag.
Change Summary:
Address issues (again).
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+1244) |