Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `farewell` helper alongside `greeting`, to exercise the CI and release pipeline end-to-end.

### Changed

### Fixed
5 changes: 5 additions & 0 deletions code/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ func greeting() string {
return "Hello from go-ci-testing"
}

func farewell() string {
return "Goodbye from go-ci-testing"
}

func main() {
fmt.Println(greeting())
fmt.Println(farewell())
}
6 changes: 6 additions & 0 deletions code/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ func TestGreeting(t *testing.T) {
t.Fatal("greeting must not be empty")
}
}

func TestFarewell(t *testing.T) {
if farewell() == "" {
t.Fatal("farewell must not be empty")
}
}
Loading