@@ -151,6 +151,7 @@ type quotedKeyMarshalTestStruct struct {
151
151
}
152
152
153
153
// TODO: Remove nolint once var is used by a test
154
+ //
154
155
//nolint:deadcode,unused,varcheck
155
156
var quotedKeyMarshalTestData = quotedKeyMarshalTestStruct {
156
157
String : "Hello" ,
@@ -160,6 +161,7 @@ var quotedKeyMarshalTestData = quotedKeyMarshalTestStruct{
160
161
}
161
162
162
163
// TODO: Remove nolint once var is used by a test
164
+ //
163
165
//nolint:deadcode,unused,varcheck
164
166
var quotedKeyMarshalTestToml = []byte (`"Yfloat-𝟘" = 3.5
165
167
"Z.string-àéù" = "Hello"
@@ -272,6 +274,7 @@ var docData = testDoc{
272
274
}
273
275
274
276
// TODO: Remove nolint once var is used by a test
277
+ //
275
278
//nolint:deadcode,unused,varcheck
276
279
var mapTestDoc = testMapDoc {
277
280
Title : "TOML Marshal Testing" ,
@@ -559,17 +562,20 @@ func (c customMarshaler) MarshalTOML() ([]byte, error) {
559
562
var customMarshalerData = customMarshaler {FirstName : "Sally" , LastName : "Fields" }
560
563
561
564
// TODO: Remove nolint once var is used by a test
565
+ //
562
566
//nolint:deadcode,unused,varcheck
563
567
var customMarshalerToml = []byte (`Sally Fields` )
564
568
565
569
// TODO: Remove nolint once var is used by a test
570
+ //
566
571
//nolint:deadcode,unused,varcheck
567
572
var nestedCustomMarshalerData = customMarshalerParent {
568
573
Self : customMarshaler {FirstName : "Maiku" , LastName : "Suteda" },
569
574
Friends : []customMarshaler {customMarshalerData },
570
575
}
571
576
572
577
// TODO: Remove nolint once var is used by a test
578
+ //
573
579
//nolint:deadcode,unused,varcheck
574
580
var nestedCustomMarshalerToml = []byte (`friends = ["Sally Fields"]
575
581
me = "Maiku Suteda"
@@ -611,6 +617,7 @@ func TestUnmarshalTextMarshaler(t *testing.T) {
611
617
}
612
618
613
619
// TODO: Remove nolint once type and methods are used by a test
620
+ //
614
621
//nolint:unused
615
622
type precedentMarshaler struct {
616
623
FirstName string
@@ -629,6 +636,7 @@ func (m precedentMarshaler) MarshalTOML() ([]byte, error) {
629
636
}
630
637
631
638
// TODO: Remove nolint once type and method are used by a test
639
+ //
632
640
//nolint:unused
633
641
type customPointerMarshaler struct {
634
642
FirstName string
@@ -641,6 +649,7 @@ func (m *customPointerMarshaler) MarshalTOML() ([]byte, error) {
641
649
}
642
650
643
651
// TODO: Remove nolint once type and method are used by a test
652
+ //
644
653
//nolint:unused
645
654
type textPointerMarshaler struct {
646
655
FirstName string
@@ -653,6 +662,7 @@ func (m *textPointerMarshaler) MarshalText() ([]byte, error) {
653
662
}
654
663
655
664
// TODO: Remove nolint once var is used by a test
665
+ //
656
666
//nolint:deadcode,unused,varcheck
657
667
var commentTestToml = []byte (`
658
668
# it's a comment on type
@@ -690,6 +700,7 @@ type mapsTestStruct struct {
690
700
}
691
701
692
702
// TODO: Remove nolint once var is used by a test
703
+ //
693
704
//nolint:deadcode,unused,varcheck
694
705
var mapsTestData = mapsTestStruct {
695
706
Simple : map [string ]string {
@@ -713,6 +724,7 @@ var mapsTestData = mapsTestStruct{
713
724
}
714
725
715
726
// TODO: Remove nolint once var is used by a test
727
+ //
716
728
//nolint:deadcode,unused,varcheck
717
729
var mapsTestToml = []byte (`
718
730
[Other]
@@ -735,6 +747,7 @@ var mapsTestToml = []byte(`
735
747
` )
736
748
737
749
// TODO: Remove nolint once type is used by a test
750
+ //
738
751
//nolint:deadcode,unused
739
752
type structArrayNoTag struct {
740
753
A struct {
@@ -744,6 +757,7 @@ type structArrayNoTag struct {
744
757
}
745
758
746
759
// TODO: Remove nolint once var is used by a test
760
+ //
747
761
//nolint:deadcode,unused,varcheck
748
762
var customTagTestToml = []byte (`
749
763
[postgres]
@@ -758,6 +772,7 @@ var customTagTestToml = []byte(`
758
772
` )
759
773
760
774
// TODO: Remove nolint once var is used by a test
775
+ //
761
776
//nolint:deadcode,unused,varcheck
762
777
var customCommentTagTestToml = []byte (`
763
778
# db connection
@@ -771,6 +786,7 @@ var customCommentTagTestToml = []byte(`
771
786
` )
772
787
773
788
// TODO: Remove nolint once var is used by a test
789
+ //
774
790
//nolint:deadcode,unused,varcheck
775
791
var customCommentedTagTestToml = []byte (`
776
792
[postgres]
@@ -825,6 +841,7 @@ func TestUnmarshalTabInStringAndQuotedKey(t *testing.T) {
825
841
}
826
842
827
843
// TODO: Remove nolint once var is used by a test
844
+ //
828
845
//nolint:deadcode,unused,varcheck
829
846
var customMultilineTagTestToml = []byte (`int_slice = [
830
847
1,
@@ -834,6 +851,7 @@ var customMultilineTagTestToml = []byte(`int_slice = [
834
851
` )
835
852
836
853
// TODO: Remove nolint once var is used by a test
854
+ //
837
855
//nolint:deadcode,unused,varcheck
838
856
var testDocBasicToml = []byte (`
839
857
[document]
@@ -846,12 +864,14 @@ var testDocBasicToml = []byte(`
846
864
` )
847
865
848
866
// TODO: Remove nolint once type is used by a test
867
+ //
849
868
//nolint:deadcode
850
869
type testDocCustomTag struct {
851
870
Doc testDocBasicsCustomTag `file:"document"`
852
871
}
853
872
854
873
// TODO: Remove nolint once type is used by a test
874
+ //
855
875
//nolint:deadcode
856
876
type testDocBasicsCustomTag struct {
857
877
Bool bool `file:"bool_val"`
@@ -864,6 +884,7 @@ type testDocBasicsCustomTag struct {
864
884
}
865
885
866
886
// TODO: Remove nolint once var is used by a test
887
+ //
867
888
//nolint:deadcode,varcheck
868
889
var testDocCustomTagData = testDocCustomTag {
869
890
Doc : testDocBasicsCustomTag {
@@ -966,6 +987,7 @@ func TestUnmarshalInvalidPointerKind(t *testing.T) {
966
987
}
967
988
968
989
// TODO: Remove nolint once var is used by a test
990
+ //
969
991
//nolint:deadcode,unused
970
992
type testDuration struct {
971
993
Nanosec time.Duration `toml:"nanosec"`
@@ -980,6 +1002,7 @@ type testDuration struct {
980
1002
}
981
1003
982
1004
// TODO: Remove nolint once var is used by a test
1005
+ //
983
1006
//nolint:deadcode,unused,varcheck
984
1007
var testDurationToml = []byte (`
985
1008
nanosec = "1ns"
@@ -994,6 +1017,7 @@ a_string = "15s"
994
1017
` )
995
1018
996
1019
// TODO: Remove nolint once var is used by a test
1020
+ //
997
1021
//nolint:deadcode,unused,varcheck
998
1022
var testDurationToml2 = []byte (`a_string = "15s"
999
1023
hour = "1h0m0s"
@@ -1007,6 +1031,7 @@ sec = "1s"
1007
1031
` )
1008
1032
1009
1033
// TODO: Remove nolint once type is used by a test
1034
+ //
1010
1035
//nolint:deadcode,unused
1011
1036
type testBadDuration struct {
1012
1037
Val time.Duration `toml:"val"`
0 commit comments