@@ -47,8 +47,8 @@ func TestSecurityInputValidation(t *testing.T) {
4747
4848 t .Run ("invalid_edge_injection" , func (t * testing.T ) {
4949 g := NewGraph (GraphMetadata {Name : "security-test" })
50- g .AddNode (& Node {ID : "a" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
51- g .AddNode (& Node {ID : "b" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
50+ _ = g .AddNode (& Node {ID : "a" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
51+ _ = g .AddNode (& Node {ID : "b" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
5252
5353 // Try to add edges with non-existent nodes (potential for manipulation)
5454 err := g .AddEdge (& Edge {From : "nonexistent" , To : "a" , Type : DependencyTypeHard })
@@ -86,8 +86,8 @@ func TestSecurityInputValidation(t *testing.T) {
8686
8787 t .Run ("invalid_dependency_types" , func (t * testing.T ) {
8888 g := NewGraph (GraphMetadata {Name : "security-test" })
89- g .AddNode (& Node {ID : "a" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
90- g .AddNode (& Node {ID : "b" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
89+ _ = g .AddNode (& Node {ID : "a" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
90+ _ = g .AddNode (& Node {ID : "b" , Properties : NodeProperties {EstimatedDuration : 1 * time .Second }})
9191
9292 // Test with invalid dependency type values
9393 invalidType := DependencyType ("invalid999" )
@@ -162,7 +162,7 @@ func TestSecurityResourceExhaustion(t *testing.T) {
162162
163163 if i > 0 {
164164 prevID := fmt .Sprintf ("node_%d" , i - 1 )
165- g .AddEdge (& Edge {From : nodeID , To : prevID , Type : DependencyTypeHard })
165+ _ = g .AddEdge (& Edge {From : nodeID , To : prevID , Type : DependencyTypeHard })
166166 }
167167 }
168168
@@ -201,14 +201,14 @@ func TestSecurityResourceExhaustion(t *testing.T) {
201201
202202 if i > 0 {
203203 prevID := fmt .Sprintf ("cycle_%d_node_%d" , c , i - 1 )
204- g .AddEdge (& Edge {From : nodeID , To : prevID , Type : DependencyTypeHard })
204+ _ = g .AddEdge (& Edge {From : nodeID , To : prevID , Type : DependencyTypeHard })
205205 }
206206 }
207207
208208 // Close the cycle
209209 firstID := fmt .Sprintf ("cycle_%d_node_0" , c )
210210 lastID := fmt .Sprintf ("cycle_%d_node_9" , c )
211- g .AddEdge (& Edge {From : firstID , To : lastID , Type : DependencyTypeHard })
211+ _ = g .AddEdge (& Edge {From : firstID , To : lastID , Type : DependencyTypeHard })
212212 }
213213
214214 startTime := time .Now ()
@@ -289,7 +289,7 @@ func TestSecurityConcurrency(t *testing.T) {
289289 go func () {
290290 for i := 0 ; i < 100 ; i ++ {
291291 nodeID := fmt .Sprintf ("node_%d" , i % 10 )
292- g .GetNode (nodeID )
292+ _ , _ = g .GetNode (nodeID )
293293 }
294294 done <- true
295295 }()
@@ -355,7 +355,7 @@ func TestSecurityRuleExecution(t *testing.T) {
355355 },
356356 )
357357
358- registry .Register (maliciousRule )
358+ _ = registry .Register (maliciousRule )
359359
360360 // Create operations instead of nodes
361361 eval := NewRuleEvaluator (registry )
@@ -395,7 +395,7 @@ func TestSecurityRuleExecution(t *testing.T) {
395395 },
396396 )
397397
398- registry .Register (infiniteRule )
398+ _ = registry .Register (infiniteRule )
399399
400400 // Create context with timeout
401401 ctx , cancel := context .WithTimeout (context .Background (), 100 * time .Millisecond )
0 commit comments