-
Notifications
You must be signed in to change notification settings - Fork 488
FirebaseObject: simplify API #136
Conversation
|
I think we should also:
|
|
|
||
| TEST(FirebaseObjectTest, GetString) { | ||
| FirebaseObject obj("\"foo\""); | ||
| EXPECT_EQ("foo", obj.getString()); |
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.
We should have tests that test a deeper object path like user/name/first or something deeper than one, make sure our path parsing is correct.
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.
GetObject tests /foo/bar below.
Do you mean we should test error when going too deep?
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.
Edit: my mistake you do test it I just missed it.
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.
Whoops just realized that you do test "/foo/bar" equals "hop", ignore this.
|
LGTM, just a couple of small nits. Feel free to ignore and submit. |
- remove cast operator - remove indexing method - accept a subpath
|
Note: Also updated the |
Fixes #133 #109