Commit 4acb873
Rename
As we were adopting Googletest Rust within Google, we received feedback that
`#[googletest::test]` is too long, inconvenient to type, that it repeats the
word "test" twice, or that it is too much detail for a user to care about.
Thus, we decided to rename `#[googletest::test]` to `#[gtest]`, also adding it
to the prelude. This is consistent with existing practice in other Rust crates
that enhance the testing experience, for example, `#[rstest]`.
This commit starts a multi-commit chain.
We are not deprecating `#[googletest::test]`, because this spelling is useful
for compatibility with the rstest crate.
PiperOrigin-RevId: 660991306googletest::test to googletest::gtest, and make test an alias for gtest
1 parent a23b0c5 commit 4acb873
2 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
152 | 177 | | |
153 | 178 | | |
154 | 179 | | |
| |||
0 commit comments