vgc UTs part 4
Change-Id: I0e78854fefb8f0ad270a84bc88982f859a0d5995
diff --git a/internal/pkg/application/pppoeia_test.go b/internal/pkg/application/pppoeia_test.go
index 45b76fa..fc07d1f 100644
--- a/internal/pkg/application/pppoeia_test.go
+++ b/internal/pkg/application/pppoeia_test.go
@@ -264,3 +264,35 @@
})
}
}
+
+func TestAddIaOption(t *testing.T) {
+ type args struct {
+ svc *VoltService
+ pppoe *layers.PPPoE
+ }
+ tests := []struct {
+ name string
+ args args
+ }{
+ {
+ name: "AddIaOption",
+ args: args{
+ svc: &VoltService{
+ VoltServiceCfg: VoltServiceCfg{
+ CircuitID: "test_circuit_id",
+ RemoteID: []byte{1},
+ DataRateAttr: DSLAttrEnabled,
+ },
+ },
+ pppoe: &layers.PPPoE{
+ Options: make(layers.PPPoEOptions, 1),
+ },
+ },
+ },
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ AddIaOption(tt.args.svc, tt.args.pppoe)
+ })
+ }
+}