Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Bloder <[email protected]>
  • Loading branch information
adinauer and lbloder authored Sep 27, 2023
1 parent e37edb4 commit 8179966
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins`() {
fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -66,7 +66,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins error`() {
fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins error`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -85,7 +85,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() {
fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -100,7 +100,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() {
fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -116,7 +116,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn but slug is missing, does not create check-in`() {
fun `when method is annotated with @SentryCheckIn but slug is missing, does not create check-in`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins`() {
fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -66,7 +66,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins error`() {
fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins error`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -85,7 +85,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() {
fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -100,7 +100,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() {
fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand All @@ -116,7 +116,7 @@ class SentryCheckInAdviceTest {
}

@Test
fun `when class is annotated with @SentryCheckIn but slug is missing, does not create check-in`() {
fun `when method is annotated with @SentryCheckIn but slug is missing, does not create check-in`() {
val checkInId = SentryId()
val checkInCaptor = argumentCaptor<CheckIn>()
whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)
Expand Down

0 comments on commit 8179966

Please sign in to comment.