Skip to content

Commit

Permalink
feat: Added initial support for Homedir lookups.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Dec 9, 2023
1 parent 2204ce8 commit e3985ba
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 169 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ If you are using this as a Go library, see the documentation at [pkg.go.dev](htt
Don't reimplement things that already work well. This project leans on the following libraries:

* [chanced/caps](https://github.com/chanced/caps) — Handles the case manipulation.
* [mitchellh/go-homedir](https://github.com/mitchellh/go-homedir) — Handles looking-up a user's home directory without CGO.

## More Information

Expand Down
Binary file modified acc-coverage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
154 changes: 77 additions & 77 deletions acc-coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions corefunc/homedir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@
package corefunc

import (
"os"
"testing"

"github.com/northwood-labs/terraform-provider-corefunc/testfixtures"
)

func TestHomedir(t *testing.T) {
if os.Getenv("GITHUB_ACTIONS") == "" {
t.SkipNow()
}

for name, tc := range testfixtures.HomedirGetTestTable {
t.Run(name, func(t *testing.T) {
output, err := Homedir()
Expand Down
4 changes: 0 additions & 4 deletions corefuncprovider/homedir_get_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ import (
)

func TestAccHomedirGetDataSource(t *testing.T) {
if os.Getenv("GITHUB_ACTIONS") == "" {
t.SkipNow()
}

funcName := traceFuncName()

for name, tc := range testfixtures.HomedirGetTestTable { // lint:no_dupe
Expand Down
Loading

0 comments on commit e3985ba

Please sign in to comment.