~hokiegeek/fitstrava

ref: f5bac16231013630f1c8e6996ecfbe398a034d23 fitstrava/fitbit_test.go -rw-r--r-- 558 bytes
f5bac162HokieGeek Done and done 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package fitstrava

import "testing"

func TestHashCodeVerifier(t *testing.T) {
	type args struct {
		verifier string
	}
	tests := []struct {
		name string
		args args
		want string
	}{
		{name: "example from docs", args: args{verifier: "01234567890123456789012345678901234567890123456789"}, want: "-4cf-Mzo_qg9-uq0F4QwWhRh4AjcAqNx7SbYVsdmyQM"},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := hashCodeVerifier(tt.args.verifier); got != tt.want {
				t.Errorf("GenCodeChallenge() = %v, want %v", got, tt.want)
			}
		})
	}
}