bbash/command/command_test.go
Tobias P.L Wennberg 15eeadf5d3 initial
2025-01-10 13:29:56 +01:00

28 lines
526 B
Go

package command
import(
"io/fs"
"testing"
)
func Test_is_executable(t *testing.T) {
tests := []struct {
name string // description of this test case
// Named input parameters for target function.
mode fs.FileMode
want bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := is_executable(tt.mode)
// TODO: update the condition below to compare got with tt.want.
if true {
t.Errorf("is_executable() = %v, want %v", got, tt.want)
}
})
}
}