github.com/seeker-insurance/kit@v0.0.13/config/required_test.go (about)

     1  package config
     2  
     3  import (
     4  	"reflect"
     5  	"testing"
     6  )
     7  
     8  func TestRequiredString(t *testing.T) {
     9  	type args struct {
    10  		key string
    11  	}
    12  	tests := []struct {
    13  		name string
    14  		args args
    15  		want string
    16  	}{
    17  	// TODO: Add test cases.
    18  	}
    19  	for _, tt := range tests {
    20  		t.Run(tt.name, func(t *testing.T) {
    21  			if got := RequiredString(tt.args.key); got != tt.want {
    22  				t.Errorf("RequiredString() = %v, want %v", got, tt.want)
    23  			}
    24  		})
    25  	}
    26  }
    27  
    28  func TestRequiredInt(t *testing.T) {
    29  	type args struct {
    30  		key string
    31  	}
    32  	tests := []struct {
    33  		name string
    34  		args args
    35  		want int
    36  	}{
    37  	// TODO: Add test cases.
    38  	}
    39  	for _, tt := range tests {
    40  		t.Run(tt.name, func(t *testing.T) {
    41  			if got := RequiredInt(tt.args.key); got != tt.want {
    42  				t.Errorf("RequiredInt() = %v, want %v", got, tt.want)
    43  			}
    44  		})
    45  	}
    46  }
    47  
    48  func TestRequiredFloat64(t *testing.T) {
    49  	type args struct {
    50  		key string
    51  	}
    52  	tests := []struct {
    53  		name string
    54  		args args
    55  		want float64
    56  	}{
    57  	// TODO: Add test cases.
    58  	}
    59  	for _, tt := range tests {
    60  		t.Run(tt.name, func(t *testing.T) {
    61  			if got := RequiredFloat64(tt.args.key); got != tt.want {
    62  				t.Errorf("RequiredFloat64() = %v, want %v", got, tt.want)
    63  			}
    64  		})
    65  	}
    66  }
    67  
    68  func TestRequiredStringSlice(t *testing.T) {
    69  	type args struct {
    70  		key string
    71  	}
    72  	tests := []struct {
    73  		name string
    74  		args args
    75  		want []string
    76  	}{
    77  	// TODO: Add test cases.
    78  	}
    79  	for _, tt := range tests {
    80  		t.Run(tt.name, func(t *testing.T) {
    81  			if got := RequiredStringSlice(tt.args.key); !reflect.DeepEqual(got, tt.want) {
    82  				t.Errorf("RequiredStringSlice() = %v, want %v", got, tt.want)
    83  			}
    84  		})
    85  	}
    86  }
    87  
    88  func TestFatalCheck(t *testing.T) {
    89  	type args struct {
    90  		key string
    91  	}
    92  	tests := []struct {
    93  		name string
    94  		args args
    95  	}{
    96  	// TODO: Add test cases.
    97  	}
    98  	for _, tt := range tests {
    99  		t.Run(tt.name, func(t *testing.T) {
   100  			FatalCheck(tt.args.key)
   101  		})
   102  	}
   103  }
   104  
   105  func TestRequiredEnv(t *testing.T) {
   106  	type args struct {
   107  		key string
   108  	}
   109  	tests := []struct {
   110  		name string
   111  		args args
   112  		want string
   113  	}{
   114  	// TODO: Add test cases.
   115  	}
   116  	for _, tt := range tests {
   117  		t.Run(tt.name, func(t *testing.T) {
   118  			if got := RequiredEnv(tt.args.key); got != tt.want {
   119  				t.Errorf("RequiredEnv() = %v, want %v", got, tt.want)
   120  			}
   121  		})
   122  	}
   123  }