Пример #1
0
 def test_resolve_logic(self):
   self.generate_targets()
   dep_context = mock.Mock()
   dep_context.compiler_plugin_types = ()
   self.assertEqual(set(strict_dependencies(self.lib_b, dep_context)), {self.lib_a, self.lib_aa})
   self.assertEqual(set(strict_dependencies(self.lib_c, dep_context)), {self.lib_b, self.lib_a})
   self.assertEqual(set(strict_dependencies(self.lib_c_alias, dep_context)), {self.lib_c, self.lib_b, self.lib_a})
   self.assertEqual(set(strict_dependencies(self.lib_d, dep_context)), {self.lib_c, self.lib_b, self.lib_a})
   self.assertEqual(set(strict_dependencies(self.lib_e, dep_context)), {self.lib_d, self.lib_c, self.lib_b, self.lib_a})
Пример #2
0
 def test_resolve_logic(self):
     self.generate_targets()
     dep_context = mock.Mock()
     dep_context.compiler_plugin_types = ()
     self.assertEqual(set(strict_dependencies(self.lib_b, dep_context)),
                      {self.lib_a, self.lib_aa})
     self.assertEqual(set(strict_dependencies(self.lib_c, dep_context)),
                      {self.lib_b, self.lib_a})
     self.assertEqual(
         set(strict_dependencies(self.lib_c_alias, dep_context)),
         {self.lib_c, self.lib_b, self.lib_a})
     self.assertEqual(set(strict_dependencies(self.lib_d, dep_context)),
                      {self.lib_c, self.lib_b, self.lib_a})
     self.assertEqual(set(strict_dependencies(self.lib_e, dep_context)),
                      {self.lib_d, self.lib_c, self.lib_b, self.lib_a})
Пример #3
0
 def dependencies(self, target):
   if self.direct(target):
     return strict_dependencies(target, self._dep_context)
   return super(ResolvedJarAwareFingerprintStrategy, self).dependencies(target)
Пример #4
0
 def dependencies(self, target):
   if self.direct(target):
     return strict_dependencies(target, self._dep_context)
   return super(ResolvedJarAwareFingerprintStrategy, self).dependencies(target)