Replies: 1 comment 2 replies
-
I do not think that it is the right moment (there is so much to do before), but I agree that the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! As the title says, I'm talking about the
msg_entity.rs
file or to be more precisely theMsg
struct.I'm wondering if we should improve the methods of the
Msg
struct because it'svery hard to write some tests for it, due to the magic strings like this "unknown sender" or "unknown date" because if you want to write some tests for it, then you'd have to copy+paste those strings which makes it a little bit hard to maintain and to test.
In my opinion, it's a sign that we need to restructure the code a little bit. What do you think about that? Do you agree to this?
Beta Was this translation helpful? Give feedback.
All reactions