-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
envraw -> envbasis for clarification. (#1117)
- Loading branch information
1 parent
8733fe4
commit 0455ffc
Showing
19 changed files
with
125 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package trcconfigbase | ||
|
||
import ( | ||
"flag" | ||
"testing" | ||
|
||
eUtils "github.com/trimble-oss/tierceron/pkg/utils" | ||
) | ||
|
||
func TestCommonMain(t *testing.T) { | ||
envPtr := "test env" | ||
addrPtr := "test addr" | ||
tokenPtr := "test token" | ||
envCtxPtr := "test envCtx" | ||
secretIDPtr := "test secretID" | ||
appRoleIDPtr := "test appRoleID" | ||
tokenNamePtr := "test tokenName" | ||
regionPtr := "test region" | ||
flagset := &flag.FlagSet{} | ||
argLines := []string{"arg1", "arg2"} | ||
c := &eUtils.DriverConfig{} // replace with actual DriverConfig | ||
|
||
err := CommonMain(&envPtr, &addrPtr, &tokenPtr, &envCtxPtr, &secretIDPtr, &appRoleIDPtr, &tokenNamePtr, ®ionPtr, flagset, argLines, c) | ||
if err != nil { | ||
t.Fatalf("Expected no error, got %v", err) | ||
} | ||
|
||
// Add assertions here based on the expected behavior of CommonMain | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.