Skip to content

Commit

Permalink
doc(docs.topics.codingConventions): add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredo-toledano committed Aug 28, 2024
1 parent f56db33 commit 00b29d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/topics/coding-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ Always put overloads next to each other in a class.

### Names for test methods

* TODO:
In tests (and **only** in tests), you can use method names with spaces enclosed in backticks.
Note that such method names are only supported by Android runtime from API level 30. Underscores
in method names are also allowed in test code.
* | test methods, can contain
* ` ` / wrapped in ``
* | Android runtime API v30+
* `_`

```kotlin
class MyTestCase {
Expand All @@ -195,6 +195,7 @@ class MyTestCase {

### Property names

* TODO:
Names of constants (properties marked with `const`, or top-level or object `val` properties with no custom `get` function
that hold deeply immutable data) should use uppercase underscore-separated ([screaming snake case](https://en.wikipedia.org/wiki/Snake_case))
names:
Expand Down

0 comments on commit 00b29d3

Please sign in to comment.